Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sejoker/awesome-jscodeshift

A curated list of jscodeshift packages and resources.
https://github.com/sejoker/awesome-jscodeshift

List: awesome-jscodeshift

Last synced: 6 days ago
JSON representation

A curated list of jscodeshift packages and resources.

Awesome Lists containing this project

README

        

# awesome jscodeshift [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)

> Awesome [jscodeshift](https://github.com/facebook/jscodeshift) resources and tips

*Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.*

*Please read the [contribution guidelines](contributing.md) before contributing.*

## Table of Contents

- [Tools](#tools)
- [Codemods](#codemods)
- [Articles](#articles)
- [Talks](#talks)
- [Integrations](#integrations)
- [Community](#community)

### Tools

- [jscodeshift](https://github.com/facebook/jscodeshift) - A JavaScript codemod toolkit.
- [recast](https://github.com/benjamn/recast) - JavaScript syntax tree transformer
- [babel](https://github.com/babel/babel) - Babel is a compiler for writing next generation JavaScript.
- [astexplorer](http://astexplorer.net/) - A web tool to explore the AST generated by various parsers.
- [jscodeshift-imports](https://www.npmjs.com/package/jscodeshift-imports) - A JSCodeshift extension with helpers for modifying import and require statements.
- [jscodemigrate](https://github.com/brysgo/jscodemigrate) - Migrate your code like you do with your database.
- [jscodeshift-ava-tester](https://github.com/jfmengels/jscodeshift-ava-tester) - Test codemods using [AVA](https://github.com/avajs/ava) test runner.

### Codemods

- [react-codemod](https://github.com/reactjs/react-codemod) - React codemod scripts to update React APIs.
- [js-codemod](https://github.com/cpojer/js-codemod/) - Codemod scripts to transform code to next generation JS.
- [js-transforms](https://github.com/jhgg/js-transforms) - Some documented codemod experiments to help you learn.
- [rackt-codemod](https://github.com/reactjs/rackt-codemod) - Codemod scripts for Rackt libraries.
- [coffee-to-es2015-codemod](https://github.com/Hacker0x01/coffee-to-es2015-codemod) - A set of JSCodeshift transforms that will help you transform your CoffeeScript codebase to ES2015
- [5to6-codemod](https://github.com/5to6/5to6-codemod) - A collection of codemods that allow you to transform your js code from ES5 to ES6.
- [es5-function-to-class-codemod](https://github.com/dhruvdutt/es5-function-to-class-codemod) - Transform ES5 Functions to ES6 Classes.
- [webpack-babel-codemod](https://github.com/agirton/webpack-babel-codemod) - Convert anonymous webpack commonjs require statements to es2015 import statements.
- [lodash-to-lodash-amd-codemods](https://github.com/OliverJAsh/lodash-to-lodash-amd-codemods) - lodash to [lodash-amd](https://github.com/lodash/lodash-amd) codemods
- [rm-debugger](https://www.npmjs.com/package/rm-debugger) - Codemod for removing `debugger;`
- [AMD Transformer](https://bitbucket.org/atlassian/amd-codemod/src) - converts JS into AMDified JS (by Atlassian)
- [preact-codemod](https://github.com/vutran/preact-codemod) - Transform your React code to Preact.
- [mocha2ava-codemod](https://github.com/shimohq/mocha2ava-codemod) - A tranformer for migrating tests from Mocha to Ava.
- [undecorate-codemod](https://github.com/tizmagik/undecorate-codemod) - Transformers experimental ESNext decorators syntax to simple currying
- [vue-codemods](https://github.com/SergioCrisostomo/vue-codemods) - Codemod script for Vue.js

### Articles

- [Effective JavaScript Codemods](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb#.jhbsdwknu)
- [How to write a codemod](https://vramana.github.io/blog/2015/12/21/codemod-tutorial/)
- [Codemods: Path to painless upgrades in Ember](http://vramana.github.io/blog/2016/01/13/codemods-path-to-painless-updgrade-in-ember/)
- [NFL ♥ Codemods: Migrating a Monolith](https://medium.com/nfl-engineers/nfl-codemods-migrating-a-monolith-1e3363571707#.j8a0gw4e6)
- [Turbocharged JavaScript refactoring with codemods (Airbnb Engineering)](https://medium.com/airbnb-engineering/turbocharged-javascript-refactoring-with-codemods-b0cae8b326b9#.iuwdhoz2v)
- [Write Code to Rewrite Your Code: jscodeshift](https://www.toptal.com/javascript/write-code-to-rewrite-your-code)
- [Writing your very first codemod with jscodeshift](https://medium.com/@andrew_levine/writing-your-very-first-codemod-with-jscodeshift-7a24c4ede31b#.40m46qpka)
- [Bridging the Network Divide (Walmart Labs)](https://medium.com/walmartlabs/bridging-the-network-divide-80e2355051dc#.2y6rc5eug)
- [Refactor Code in Your Lunch Break: Getting Started with Codemods](https://www.sitepoint.com/getting-started-with-codemods/)
- [Codemod - Refactoring Code Programmatically - Interview with Ramana Venkata](https://survivejs.com/blog/codemod-interview/)
- [Automating the migration of lodash to lodash-es in a large codebase with jscodeshift](https://webuild.envato.com/blog/automating-the-migration-of-lodash-to-lodash-es-in-a-large-codebase-with-jscodeshift/)

### Talks
- [Evolving Complex Systems Incrementally](https://www.youtube.com/watch?v=d0pOgY8__JM)
- [Hiking Through the JavaScript Forest by Jamund Ferguson](https://channel9.msdn.com/Blogs/seattlejs/2016-01-14-02) (covers jscodeshift as well as eslint and babel)
- [Writing codemods to change all your code at once](https://www.youtube.com/watch?v=3upPRzn7JHU)
- [JSCodeShift to keep your source evergreen with Web Components](https://www.youtube.com/watch?v=UF4LFNN2Ut4)

### Integrations
- [grunt-jscodeshift](https://github.com/cowchimp/grunt-jscodeshift)

### Community

- [#codemon channel](https://discord.gg/0ZcbPKXt5bX9R9qE) on [Reactiflux](http://www.reactiflux.com/)
- [Stack Overflow](http://stackoverflow.com/questions/tagged/jscodeshift)
- [Medium](https://medium.com/tag/codemods)
- [Twitter](https://twitter.com/hashtag/JSCodeShift?src=hash)

## License

MIT