Find Express 4 code to migrate by hand

MSAL

Marks the Express 4 code that behaves differently on Express 5 and that the recipes of MigrateToExpress5 cannot rewrite with the same behaviour: route paths using regular expression syntax, wildcards a handler reads by position, response calls whose status argument only running the code tells, req.param() and res.sendfile() calls whose arguments cannot be spelled out, app.param(fn), router.param() with an array of names, writes to req.query, express.static.mime, res.clearCookie() options Express 5 ignores, hidden and from options, res.vary() without a field, req.params.hasOwnProperty(), express.urlencoded() options that do not say whether they are extended, and app.listen() callbacks that are not written in the call.

org.openrewrite.javascript.migrate.express.FindExpress5ManualMigrations
mod run . --recipe=org.openrewrite.javascript.migrate.express.FindExpress5ManualMigrations

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.