Skip to content

esridc/js-code-mods

Repository files navigation

JS Code Mods

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.

Contributing a Code Mod

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.

Develop

# clone and install dependencies
git clone https://github.com/esridc/js-code-mods
cd js-code-mods
npm i

Test

Run the npm t commmand to spin up the automated tests.

About

A set of useful Javascript code mods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published