babel-codemod rewrites JavaScript and TypeScript using babel plugins.
eventualbuddha Merge pull request #190 from codemod-js/abstract-fs
refactor: wrap system operations in a `System` object
Latest commit 133e50b Dec 13, 2018


Code rewriter for automated refactors.

Why Codemods?

Sometimes big changes to your source code are required, and making such changes by hand is dangerous. For example, codemods can:

  • rename across a codebase safely
  • upgrade your uses of outdated APIs
  • perform complex automated refactors
  • much more!

Since codemods are typically just code themselves, you can write one to do whatever you want.

Getting Started

Check out the docs for @codemod/cli for instructions on installing and using the codemod CLI tool.


Copyright 2017-2018 Brian Donovan

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.