jscodeshift: Detailed Overview & Metrics

v0.15.2(4 months ago)

This package is actively maintained.Types definitions are provided via a separate npm package: @types/jscodeshiftNumber of direct dependencies: 20Monthly npm downloads

JSCodeshift is a toolkit for running codemods over multiple JavaScript files. It provides a simple and efficient way to make large-scale codebase transformations automatically. JSCodeshift leverages the power of abstract syntax trees (ASTs) to analyze and modify JavaScript code programmatically. It is commonly used for refactoring, upgrading code to comply with new standards, and applying consistent code style changes across projects.

Compared to manual code refactoring, JSCodeshift offers a more systematic and scalable approach, saving time and reducing the risk of errors. It allows developers to define custom transformations and apply them consistently across the codebase.

Alternatives:
recast+
babel-plugin-macros+
esprima+
acorn+
babel-core+
prettier+
eslint+
ts-morph+
ast-types+
babel-eslint+

Tags: javascriptcodemodrefactoringASTtransformation