codemod
v0.14.2
Published
A codemod engine for Node.js libraries (jscodeshift, ts-morph, etc.)
Downloads
19,517
Readme
The Codemod platform helps you create, distribute, and deploy codemods in codebases of any size.
The AI-powered, community-led codemods enable you to automate framework upgrades, large refactoring, and boilerplate programming with unparalleled speed and developer experience.
Global installation (recommended)
npm i -g codemod
Usage & Documentation
For details on how to use the Codemod platform, check out our documentation.
Quickstart
List available codemods
The list
command can be used to list all codemods available in the Codemod Registry.
codemod list
Running a codemod
codemod [codemod-name]
Example
codemod next/13/app-router-recipe
Create codemod with AI
The learn
command can be used to send the diff of the latest edited file to the Codemod Studio and have it automatically build an explainable and debuggable codemod.
codemod learn
After running this command, if any git diff exists, codemod
will use the diff as before/after snippets in the Codemod Studio.
Community
The Codemod community can be found on Slack, where you can ask questions, share your feedback, and contribute to the community.
Our Code of Conduct applies to all Codemod community channels.
Telemetry
We collect anonymous usage data to improve our product. Collected data cannot be linked to individual users. We do not store personal data/code.
For more details and samples of collected data see our telemetry compliance considerations doc.