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.
This codemod migration recipe helps you update your Express.js v4 applications to be compatible with Express.js v5 by addressing deprecated APIs.
Migrates usage of the legacy APIs `req.param(name)` to the current recommended approaches
Migrates usage of the legacy APIs `res.redirect(url, status)` to use the recommended argument order `res.redirect(status, url)`.
Migrates usage of the legacy APIs `app.del()` to `app.delete()`
Migrates usage of deprecated singular request methods to their pluralized versions in Express.js applications.
Migrates usage of the legacy APIs `res.send(status)`, `res.send(obj, status)`, `res.json(obj, status)` and `res.jsonp(obj, status)` to the current recommended approaches
Migrates usage of the legacy API `res.sendfile(file)` to `res.sendFile(file)`
Migrates usage of the legacy APIs `res.redirect('back')` and `res.location('back')` to the current recommended approaches
Build your own codemod and share it with the community.