yyx990803/path-to-regexp — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2016-07-15
Turn an Express-style route like /posts/:id into a regex that matches real URLs.
Extract parameter values, such as userId and postId, from an incoming URL path.
Generate a concrete URL string from a route pattern and a set of parameter values.
Build a custom routing system with optional, repeating, or regex-constrained parameters.
| yyx990803/path-to-regexp | anuj-kumary/your-github-contributions | arashthr/hugo-flow | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | TypeScript | TypeScript | TypeScript |
| Last pushed | 2016-07-15 | 2026-06-07 | — |
| Maintenance | Dormant | Maintained | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
npm install and import, no external services required.
A TypeScript library that turns route patterns like /user/:id into regular expressions for URL matching, and can also build URLs back from parameter values.
Mainly TypeScript. The stack also includes TypeScript.
Dormant — no commits in 2+ years (last push 2016-07-15).
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.