jscodeshift is a toolkit created by Facebook for running codemods over multiple JS files
jscodeshift
is a toolkit for running codemods over multiple JS files. It provides:
- A runner, which executes the provided transform for each file passed to it. It also outputs a summary of how many files have (not) been transformed.
- A wrapper around recast, providing a different API. Recast is an AST-to-AST transform tool, and also tries to preserve the style of original code as much as possible.