jscodeshift: Detailed Overview & Metrics

v0.16.1(about 1 month ago)

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

JSCodeshift is a toolkit for running codemods - scripts that assist in automating the process of making codebase-wide changes. It allows developers to write simple JavaScript scripts to transform their codebase programmatically. JSCodeshift provides a simple API for traversing and manipulating abstract syntax trees (ASTs) of JavaScript code, making it easier to refactor code, apply best practices, and upgrade to newer syntax standards.

Compared to manual refactoring, JSCodeshift offers a more efficient and consistent way to make large-scale code modifications. It is actively maintained and widely used in the JavaScript community for codebase transformations and modernization.

Alternatives:
recast+
babel-plugin-macros+
escodegen+
ast-types+
babel-core+
@babel/traverse+
@babel/generator+
prettier+
eslint+
ts-morph+

Tags: javascriptcodemodsrefactoringASTautomation