/jscodeshift-article

companion code for jscodeshift article

Primary LanguageJavaScript

Codemods with jscodeshift
Writing Code to Rewrite Your Code

Exercise 1 - Remove Consoles

jscodeshift -t remove-consoles.js remove-consoles.input.js -d -p

Exercise 2 - Deprecated Method Calls

jscodeshift -t ./deprecated.js ./deprecated.input.js -d -p

Exercise 3 - Signature Change

jscodeshift -t signature-change.js signature-change.input.js -d -p