Skip to content

Codemod scripts to transform code

Notifications You must be signed in to change notification settings

gilbarbara/js-codemod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

js-codemod

This repository contains a collection of codemod scripts for use with JSCodeshift.

Setup & Run

npm install -g jscodeshift
git clone https://github.com/gilbarbara/js-codemod.git
jscodeshift -t <codemod-script> <file>

Use the -d option for a dry-run and use -p to print the output for comparison.

Included Scripts

epic-to-saga

jscodeshift -t js-codemod/transforms/epic-to-saga.js <file>

Recast Options

Options to recast's printer can be provided through the printOptions command line argument

jscodeshift -t transform.js <file> --printOptions='{"quote":"double"}'

About

Codemod scripts to transform code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published