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.
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()`
Replaces deprecated `util.is*()` methods with their modern equivalents.
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`.
Handle DEP0081 via transforming `truncate` to `ftruncateSync` when using a file descriptor.
Handle DEP0178 via transforming `dirent.path` to `dirent.parentPath`.
Handle DEP0154 via transforming deprecated RSA-PSS crypto options `hash` to `hashAlgorithm` and `mgf1Hash` to `mgf1HashAlgorithm`
Handle DEP0093 via transforming `crypto.fips` to `crypto.getFips()` and `crypto.setFips()`
Migrate from the chalk package to Node.js's built-in util.styleText API
Build your own codemod and share it with the community.