Skip to content

expressjs/codemod

@expressjs/codemod

OpenSSF Scorecard Badge

Express.js provides Codemod transforms to help you upgrade your express server when a feature is deprecated or removed.

Codemods are transformations that run on your codebase programmatically. This allows for a large amount of changes to be applied without having to manually go through every file.

Usage

From Registry

With the codemod CLI you can run a workflow from the Codemod Registry. Replace <codemod> with the name of the codemod you want to run:

npx codemod @expressjs/<codemod>

For see the list of available codemods, visit the Express.js Codemod Registry.

From source

You can also clone the repository and run the codemods locally. First, clone the repository:

git clone https://github.com/expressjs/codemod.git
cd /path/to/your-project
npx codemod workflow run -w /path/to/codemod/codemods/<recipe>/workflow.yaml

See the codemod CLI doc for a full list of available commands.

Contributing

The Express.js project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!

See the Contributing Guide for more technical details on contributing.

License

MIT

About

Codemods for updating express servers

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 12