This codemod migration recipe helps you update your Express.js v4 applications to be compatible with Express.js v5 by addressing deprecated APIs.
expressjs3,421 executions
Workflow default · Migrates usage of the legacy APIs `res.redirect('back')` and `res.location('back')` to the current recommended approaches
Workflow default · Migrates usage of the legacy API `res.sendfile(file)` to `res.sendFile(file)`
Workflow default · Migrates usage of the legacy APIs `req.param(name)` to the current recommended approaches.
Workflow default · Migrates usage of deprecated singular request methods to their pluralized versions in Express.js applications.
Workflow default · Migrates usage of the legacy APIs `res.redirect(url, status)` to use the recommended argument order `res.redirect(status, url)`.
Workflow default · Migrates usage of the legacy APIs `app.del()` to `app.delete()`
Workflow default · Adds explicit dotfiles option to res.sendFile() calls to preserve Express 4 behavior
Workflow default · Adds explicit dotfiles option to express.static() calls to preserve Express 4 behavior
Workflow default · Migrates express.static.mime to the mime-types package
Workflow default · 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
Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.