@colabo-tool/c-codemod
v0.10.5
Published
Colabo tool command puzzle - managing codemod operations (based on https://github.com/facebook/jscodeshift)
Downloads
11
Readme
Colabo Tool - Support for performing codemod operations over code
Based on: https://github.com/facebook/jscodeshift Inspired with https://github.com/reactjs/react-codemod/blob/master/bin/cli.js
The main added value is that we can have multiple passes and therefore solve for example more complex transformations, happening across multiple files, for example
- renaming a particular identifier (for example, class or interface) and successively all of its references in the whole codebase, excluding same identifier name but not related to it (same interface name from different package, module, or common used word, like
flow
) - more declarative parameters
- support for passing parameters in external json file
- support for importing transformation in equal way to npm import: package name, local or relative/absoulte path