{"id":24206365,"url":"https://github.com/open-tech-foundation/route-matcher","last_synced_at":"2025-06-22T06:39:45.454Z","repository":{"id":65523101,"uuid":"484128603","full_name":"Open-Tech-Foundation/route-matcher","owner":"Open-Tech-Foundation","description":"A route pattern matcher using regular expressions.","archived":false,"fork":false,"pushed_at":"2022-05-01T21:28:29.000Z","size":1115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-27T22:15:46.103Z","etag":null,"topics":["match","params","path","regexp","route"],"latest_commit_sha":null,"homepage":"https://route-matcher.pages.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Open-Tech-Foundation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-21T16:36:32.000Z","updated_at":"2022-05-01T21:36:02.000Z","dependencies_parsed_at":"2023-01-27T06:01:41.317Z","dependency_job_id":null,"html_url":"https://github.com/Open-Tech-Foundation/route-matcher","commit_stats":null,"previous_names":["open-tech-world/route-matcher"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Tech-Foundation%2Froute-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Tech-Foundation%2Froute-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Tech-Foundation%2Froute-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Tech-Foundation%2Froute-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Open-Tech-Foundation","download_url":"https://codeload.github.com/Open-Tech-Foundation/route-matcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241677186,"owners_count":20001645,"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":["match","params","path","regexp","route"],"created_at":"2025-01-14T00:20:17.492Z","updated_at":"2025-03-03T13:42:40.294Z","avatar_url":"https://github.com/Open-Tech-Foundation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Route Matcher\n\n⚡ by [Open Tech World](https://open-tech-world.pages.dev/)\n\n[![Build](https://github.com/open-tech-world/route-matcher/actions/workflows/build.yml/badge.svg)](https://github.com/open-tech-world/route-matcher/actions/workflows/build.yml)\n[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@open-tech-world/route-matcher/latest?label=Min%2BGZip)](https://bundlephobia.com/package/@open-tech-world/route-matcher)\n\n\u003c/div\u003e\n\n\u003e A route pattern matcher using regular expressions.\n\n## Features\n\n- Simple API\u003c/li\u003e\n- Strict parsing (\u003ca href=\"https://route-matcher.pages.dev/docs/Parser%20Rules\"\u003eSee parser rules\u003c/a\u003e)\n  \u003c/li\u003e\n- Supports named \u0026 unnamed parameters\u003c/li\u003e\n- Supports custom regular experssions\u003c/li\u003e\n- Parameters can be repeated or optional\u003c/li\u003e\n\n## Live Tester\n\n[https://route-matcher.pages.dev/tester](https://route-matcher.pages.dev/tester)\n\n## Installation\n\n```bash\n# With npm\n$ npm install @open-tech-world/route-matcher\n\n# With yarn\n$ yarn add @open-tech-world/route-matcher\n```\n\n## Usage\n\n```ts\nimport { routeMatcher } from \"@open-tech-world/route-matcher\";\n\nrouteMatcher(route: string, path: string): RouteSegment[] | null;\n\n// Eg: routeMatcher(\"/path/:param\", \"/path/value\");\n```\n\n## Documentation\n\nPlease read the complete documentation at: [https://route-matcher.pages.dev/](https://route-matcher.pages.dev/)\n\n## License\n\nCopyright (c) [Thanga Ganapathy](https://github.com/Thanga-Ganapathy) ([MIT License](./LICENSE)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-tech-foundation%2Froute-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-tech-foundation%2Froute-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-tech-foundation%2Froute-matcher/lists"}