Skip to content
JS
Package

path-to-regexp

Express style path to RegExp utility

v8.4.2, 1 Apr 2026MITCommonJSTypes: BundledRouting
$ npm install path-to-regexp

Key numbers

As of 25 Sept 2026
Weekly downloads
162.9m
+120% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 months ago
v8.4.2
GitHub stars
8.6k
488 forks
Open issues / PRs
4 / 8
Contributors
45
Commits, last 52 weeks
21

Downloads

Last week 2026-09-15 to 2026-09-21
0100m200m300mSept 2025Mar 2026Sept 2026High 216.6m (25 Aug 2026)Low 55.4m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

162,925,459 downloads last week, 765,481,435 in the last month. The 12-month change of +120% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
473 in total
Latest version
8.4.2, 1 Apr 20265 months ago
First published
1 Aug 2012
Last push to GitHub
22 Sept 20262 days before the snapshot
Repository archived
No
Open issues
4
Open pull requests
8
Commits, last 52 weeks
21
Dependents on npm
7,146

Major versions

  1. v8 first release 8.0.0, 1 Sept 2024
  2. v7 first release 7.0.0, 20 Jun 2024
  3. v6 first release 6.0.0, 20 Nov 2019
  4. v5 first release 5.0.0, 12 Nov 2019
  5. v4 first release 4.0.0, 12 Nov 2019
  6. v3 first release 3.0.0, 14 Jan 2019
  7. v2 first release 2.0.0, 23 Aug 2017
  8. v1 first release 1.0.0, 17 Aug 2014
  9. v0 first release 0.0.1, 1 Aug 2012

Recent releases

VersionPublished
8.4.21 Apr 2026
8.4.130 Mar 2026
8.4.026 Mar 2026
0.1.1326 Mar 2026
8.3.02 Sept 2025
0.1.125 Dec 2024
8.2.026 Sept 2024
0.1.1112 Sept 2024
6.3.012 Sept 2024
3.3.010 Sept 2024
1.9.010 Sept 2024
7.2.010 Sept 2024
8.1.010 Sept 2024
8.0.01 Sept 2024
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
58 kB
Dependencies (0)
None
npm install path-to-regexp

CDN

jsDelivr: 171.9k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/path-to-regexp@8.4.2/
  • unpkghttps://unpkg.com/path-to-regexp@8.4.2/
  • esm.shhttps://esm.sh/path-to-regexp@8.4.2
PackageWeekly downloadsGzipLast releaseModuleComparison
regexparam3m-2 years agoESM + CommonJSpath-to-regexp vs regexparam

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.