These examples were primarily created to demonstrate the use of jscodeshift.
git clone https://github.com/lund0n/jscodeshift-examples
cd jscodeshift-examples
npm install
npm test
- Assignment statement: http://astexplorer.net/#/gist/905172d787caa3249a1d4a77cbdf0bd3/8f52b24b3d48f5d79ac1dbec69580bd0b5882b44
- Function declarations: http://astexplorer.net/#/gist/59d553dd71732444d00efc7833a9a344/ad7106e799552276b416dc3aa340bfe1f2a8cc36
- If statements: http://astexplorer.net/#/gist/59d553dd71732444d00efc7833a9a344/7d5aec7e56ea8192a8343ead8638a21b8c0e2028