{"library":"http-rewrite-middleware","type":"library","category":null,"description":"This package, `http-rewrite-middleware`, provides Nginx-inspired, regular expression-based URL rewriting functionality as a middleware for Connect and Express web servers. It allows developers to define rules for internal rewrites (where the server processes the new URL internally without notifying the client) or external HTTP 301 (permanent) or 302 (temporary) redirects (where the client is instructed to request a new URL). The current version available is 0.1.6, though the provided README refers to v0.1.5. Its `node >= 0.8.0` engine requirement and low version number indicate that the package has likely not seen significant active development in many years, suggesting it is either abandoned or in a very minimal maintenance state. Its primary differentiators are its straightforward, rule-based approach for managing both internal URL transformations and client-side redirects, similar to how Nginx's `rewrite` module operates, making it a direct successor to `grunt-connect-rewrite` for Grunt-based setups.","language":"javascript","status":"abandoned","version":"0.1.6","tags":["javascript","gruntplugin","grunt-contrib-connect","grunt-express","modrewrite","rewriterule","rewrite","route","connect"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-rewrite-middleware","imports":["const rewriteModule = require('http-rewrite-middleware');","const rewriteMiddleware = rewriteModule.getMiddleware([...rules]);","{ from: '^/old$', to: '/new', redirect: 'permanent' }"]},{"cmd":"yarn add http-rewrite-middleware","imports":[]},{"cmd":"pnpm add http-rewrite-middleware","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-rewrite-middleware","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/http-rewrite-middleware/compatibility"}}