1.1.2 • Published 7 months ago

kodemod v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

kodemod

A simple codemod runner for codemods built as Babel plugins. Prettier included.

Install

yarn add kodemod

Usage

The kodemod expects a single Babel plugin and a path to directory which the plugin should be applied to.

yarn kodemod -p path/to/plugin.ts path/to/refactor

If the plugin needs some options, they can be passed as a JSON object

yarn kodemod -p path/to/plugin.ts -o '{"doMagic":true}' path/to/refactor

If a file is transformed, it is also formatted by Prettier before its saved. The runner looks for a Prettier config based on the file location.

License

This project is licensed under the MIT License

1.1.1

8 months ago

1.1.2

7 months ago

1.1.0

9 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago