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.
Replaces deprecated `util.is*()` methods with their modern equivalents.
Migrate from the chalk package to Node.js's built-in util.styleText API
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`.
Handle DEP0116 via transforming `url.parse` to `new URL()`
Migrate deprecated node:timers APIs to public timer functions.
Handle DEP0066: migrate deprecated use of `OutgoingMessage.prototype` `_headers` & `_headerNames` to public HTTP header APIs
Handle DEP0108 by replacing deprecated `zlib.bytesRead` with `zlib.bytesWritten` in Node.js transform streams
Handle DEP0026, DEP0027, DEP0028, DEP0029 via transforming `util.print|puts|debug|error()` to `console.log|error()`
Handle DEP0060 by replacing `util._extend()` with `Object.assign()`.
Handle DEP0030 via transforming SlowBuffer usage to Buffer.allocUnsafeSlow().
Handle DEP0185: Instantiating node:repl classes without new
Handle DEP0100 via transforming `process.assert` to `node:assert`.
Build your own codemod and share it with the community.