{"id":19142274,"url":"https://github.com/eldoy/reqroute","last_synced_at":"2026-02-06T09:40:09.449Z","repository":{"id":65522370,"uuid":"483208481","full_name":"eldoy/reqroute","owner":"eldoy","description":"HTTP Request router","archived":false,"fork":false,"pushed_at":"2024-08-01T01:20:06.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T15:34:31.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/eldoy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-19T10:59:58.000Z","updated_at":"2024-08-01T01:20:09.000Z","dependencies_parsed_at":"2024-11-09T07:29:32.702Z","dependency_job_id":"71a7588d-9c11-4a38-8816-738dc5e8dcc8","html_url":"https://github.com/eldoy/reqroute","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"8aee516ed7ecaf802ed3cdb3c9bb0d4bda49f11e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eldoy/reqroute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Freqroute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Freqroute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Freqroute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Freqroute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/reqroute/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Freqroute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29157434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T07:18:23.844Z","status":"ssl_error","status_checked_at":"2026-02-06T07:13:32.659Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-09T07:26:36.563Z","updated_at":"2026-02-06T09:40:08.226Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reqroute\n\nRouting lookup for NodeJS web servers. Supports dynamic URLs.\n\n### Install\n\n```\nnpm i reqroute\n```\n\n### Usage\n\nThe routes support both `get` and `post` requests.\n\n```js\nvar http = require('http')\nvar rekvest = require('rekvest')\nvar router = require('reqroute')\n\n// Create routes\nvar routes = {\n  'get#/hello': 'hello',\n  'post#/project/create': 'project/create'\n}\n\n// NodeJS web server\nvar server = http.createServer(function(req, res) {\n\n  // Add pathname to request object\n  rekvest(req)\n\n  router(req, routes)\n\n  // If match, the value in the routes is found here\n  req.route // 'hello'\n})\n```\n\n### Dynamic URLs\n\nRequests support _dynamic URLs_.\n\nThe parts of the URL that should be dynamic is prefixed by an _underscore_:\n\n```js\nvar routes = {\n  'get#/project/_project_link': 'project/show'\n}\n\n// Assume req.pathname is '/project/master'\nvar server = http.createServer(function(req, res) {\n\n  // Add pathname to request object\n  rekvest(req)\n\n  router(req, routes)\n\n  req.route // 'project/show'\n  req.params.project_link // 'master'\n})\n```\n\nISC Licensed. Enjoy!\n\nCreated by [Eldøy Projects](https://eldoy.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Freqroute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Freqroute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Freqroute/lists"}