Skip to content
JS
Package

safe-regex2

detect possibly catastrophic, exponential-time regular expressions

v5.1.1, 19 Apr 2026MITCommonJSTypes: Bundled
$ npm install safe-regex2

Key numbers

As of 25 Sept 2026
Weekly downloads
12.9m
+320% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
5 months ago
v5.1.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15m20mSept 2025Mar 2026Sept 2026High 17.3m (25 Aug 2026)Low 2m (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.

12,938,073 downloads last week, 57,992,917 in the last month. The 12-month change of +320% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
28 in total
Latest version
5.1.1, 19 Apr 20265 months ago
First published
18 Feb 2019
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
122

Major versions

  1. v5 first release 5.0.0, 8 Mar 2025
  2. v4 first release 4.0.0, 12 Jul 2024
  3. v3 first release 3.0.0, 25 May 2022
  4. v2 first release 2.0.0, 18 Feb 2019

Recent releases

VersionPublished
5.1.119 Apr 2026
5.1.012 Mar 2026
5.0.08 Mar 2025
4.0.130 Dec 2024
4.0.012 Jul 2024
3.1.04 Dec 2022
3.0.025 May 2022
2.0.018 Feb 2019
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
11 kB
Dependencies (1)
ret
npm install safe-regex2
  • jsDelivrhttps://cdn.jsdelivr.net/npm/safe-regex2@5.1.1/
  • unpkghttps://unpkg.com/safe-regex2@5.1.1/
  • esm.shhttps://esm.sh/safe-regex2@5.1.1
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.