@colabo-tool/c-codemod

0.10.5 • Public • Published

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

  1. 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)
  2. more declarative parameters
    • support for passing parameters in external json file
  3. support for importing transformation in equal way to npm import: package name, local or relative/absoulte path

Readme

Keywords

none

Package Sidebar

Install

npm i @colabo-tool/c-codemod

Weekly Downloads

2

Version

0.10.5

License

MIT

Unpacked Size

35.3 kB

Total Files

8

Last publish

Collaborators

  • mprinc