Skip to content
JS
Package

to-regex-range

Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.

v5.0.1, 7 Apr 2019MITCommonJSTypes: NoneFiles and file systems
$ npm install to-regex-range

Key numbers

As of 25 Sept 2026
Weekly downloads
125.6m
+67% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
7 years ago
v5.0.1
GitHub stars
173
26 forks
Open issues / PRs
3 / 10
Contributors
5
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150m200mSept 2025Mar 2026Sept 2026High 160.3m (25 Aug 2026)Low 47.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.

125,550,071 downloads last week, 571,259,626 in the last month. The 12-month change of +67% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
018 in total
Latest version
5.0.1, 7 Apr 20197 years ago
First published
7 Aug 2015
Last push to GitHub
1 Aug 2024784 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
10
Commits, last 52 weeks
0
Dependents on npm
2,391

Major versions

  1. v5 first release 5.0.0, 7 Apr 2019
  2. v4 first release 4.0.0, 4 Jul 2018
  3. v3 first release 3.0.0, 1 Nov 2017
  4. v2 first release 2.0.0, 22 Apr 2017
  5. v1 first release 1.0.0, 19 Oct 2016
  6. v0 first release 0.1.0, 7 Aug 2015

Recent releases

VersionPublished
5.0.17 Apr 2019
5.0.07 Apr 2019
4.0.317 Jan 2019
4.0.225 Jul 2018
4.0.14 Jul 2018
4.0.04 Jul 2018
3.0.01 Nov 2017
2.1.127 Apr 2017
2.1.023 Apr 2017
2.0.022 Apr 2017
1.0.219 Oct 2016
1.0.119 Oct 2016
1.0.019 Oct 2016
0.2.014 Sept 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=8.0
Runtimes
-
Unpacked size (npm)
22 kB
Dependencies (1)
is-number
npm install to-regex-range
  • jsDelivrhttps://cdn.jsdelivr.net/npm/to-regex-range@5.0.1/
  • unpkghttps://unpkg.com/to-regex-range@5.0.1/
  • esm.shhttps://esm.sh/to-regex-range@5.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
expand-range2.9m-7 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.