{"id":20607472,"url":"https://github.com/loopj/connect-url-rewrite","last_synced_at":"2025-04-15T03:55:44.944Z","repository":{"id":5497526,"uuid":"6696316","full_name":"loopj/connect-url-rewrite","owner":"loopj","description":"Connect/Express middleware for rewriting URLs using regular expressions (like mod_rewrite).","archived":false,"fork":false,"pushed_at":"2012-11-14T22:52:50.000Z","size":104,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T15:45:58.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loopj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-14T22:52:39.000Z","updated_at":"2023-10-12T09:47:15.000Z","dependencies_parsed_at":"2022-07-26T01:16:09.940Z","dependency_job_id":null,"html_url":"https://github.com/loopj/connect-url-rewrite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fconnect-url-rewrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fconnect-url-rewrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fconnect-url-rewrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fconnect-url-rewrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loopj","download_url":"https://codeload.github.com/loopj/connect-url-rewrite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525141,"owners_count":21118620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T10:07:31.919Z","updated_at":"2025-04-15T03:55:44.927Z","avatar_url":"https://github.com/loopj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Connect/Express URL Redirect Middleware\n=======================================\n\nConnect/Express middleware for rewriting URLs using regular expressions \n(like mod_rewrite).\n\nUsage\n-----\n```javascript\n\n// Require the middleware\nrewrite = require(\"connect-url-rewrite\");\n\n// Build your redirect rules\nrules = [\n  \"^\\/example.html /redirected.html\"\n]\n\n// Add the middleware to the stack\napp.use(rewrite(rules));\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Fconnect-url-rewrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floopj%2Fconnect-url-rewrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Fconnect-url-rewrite/lists"}