Codemod Registry
Explore community-led codemods to migrate, optimize, and transform your codebase.
Ready to contribute?
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
Transform legacy code patterns
Handle DEP0176 via transforming imports of `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK` from the root `fs` module to `fs.constants`.
Transform legacy code patterns
Handle DEP0059 via transforming `log.util()` to `console.log()`.
Detects hard-coded strings in your app and leaves a comment to contact the Codemod team. For demo and pilot use.
transform console.log to logger.log
Find class components
Stripe Legacy to StripeClient Migration Codemod
Handle DEP0138 via transforming `process.mainModule` to `require.main`.
Handle DEP0022 via transforming `tmpDir` to `tmpdir`.
Handle DEP0147 via transforming `fs.rmdir` to `fs.rm`
Build your own codemod and share it with the community.