This is a set of codemods built on jscodeshift
for making menial tasks and code upgrades easier. Visit the transforms directory to see what's available.
Building a code mod amounts to defining a series of AST transformations. It is generally easiest to start by building a basic mod at astexplorer.net before porting it to this repo. Refer to the jscodeshift
README for instructions on creating these. Also, look at the tape-to-jest
mod for an example.
# clone and install dependencies
git clone https://github.com/esridc/js-code-mods
cd js-code-mods
npm i
Run the npm t
commmand to spin up the automated tests.