{"library":"express-urlrewrite","type":"library","category":null,"description":"express-urlrewrite is an Express.js middleware designed for flexible URL rewriting within an application. It allows developers to transform incoming request URLs based on regular expressions, route parameters, or wildcard patterns, without performing HTTP redirects. This is crucial for internal routing, path normalization, or creating cleaner URLs. The library is currently at version 2.0.3 and appears to be in a maintenance phase, with the last publish over two years ago. Its key differentiators include robust support for dynamic rewriting using named or numeric route parameters, wildcards (`*`), and the ability to modify query strings. A notable feature is its capacity to act as route-specific middleware, passing control to the *next matching route* in the Express router rather than the general next middleware in the stack, offering fine-grained control over the request flow.","language":"javascript","status":"maintenance","version":"2.0.3","tags":["javascript","express","middleware","rewrite","redirect","url","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-urlrewrite","imports":["import rewrite from 'express-urlrewrite';","import type { RequestHandler } from 'express';\nimport type RewriteFunction from 'express-urlrewrite';","app.use(rewrite('/oldpath', '/newpath'));"]},{"cmd":"yarn add express-urlrewrite","imports":[]},{"cmd":"pnpm add express-urlrewrite","imports":[]}],"homepage":null,"github":"https://github.com/kapouer/express-urlrewrite","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-urlrewrite","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-urlrewrite/compatibility"}}