Skip to content

ijlee2/codemod-utils

Repository files navigation

This project uses GitHub Actions for continuous integration.

@codemod-utils

Utilities for writing codemods

What are codemods?

A codemod is a function that takes files as input and output. It reads the files of interest, makes some changes, then saves the result to your disk.

One special case is the identity function. That is, not all codemods need to make a change. As a result, linters are a codemod. Tools that gather files, collect metrics, analyze package dependencies, or find vulnerabilities are also one.

In short, codemods are everywhere and you’ve likely used a few already.

What is codemod-utils?

codemod-utils provides a set of tools and conventions to help you write codemods. Use @codemod-utils/cli to get started.

pnpx @codemod-utils/cli <your-codemod-name>

Package overview

Documentation

Visit https://codemod-utils.netlify.app/.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

Utilities for writing codemods

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •