Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikgraf/js-codemod
A collection of codemods
https://github.com/nikgraf/js-codemod
Last synced: about 1 month ago
JSON representation
A collection of codemods
- Host: GitHub
- URL: https://github.com/nikgraf/js-codemod
- Owner: nikgraf
- License: mit
- Created: 2015-10-13T20:47:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-13T21:23:03.000Z (over 9 years ago)
- Last Synced: 2025-01-05T16:06:16.778Z (about 1 month ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-codemods - nikgraf/js-codemod - A collection of codemods. (JavaScript)
README
## js-codemod
This repository contains a collection of codemod scripts for use with
[JSCodeshift](https://github.com/facebook/jscodeshift).### Setup & Run
* `npm install -g jscodeshift`
* `git clone https://github.com/nikgraf/js-codemod.git`
* `jscodeshift -t `
* Use the `-d` option for a dry-run and use `-p` to print the output
for comparison### Development
For development I recommend using the ASTExplorer e.g. [http://astexplorer.net/#/Obk6NXAm1g](http://astexplorer.net/#/Obk6NXAm1g)
Special thanks to [@cpojer](https://github.com/cpojer) for introducing me to codemods and helping out with getting started. Checkout his collection of [codemods](https://github.com/cpojer/js-codemod).