Skip to content
JS
Package

safe-regex

detect possibly catastrophic, exponential-time regular expressions

v2.1.1, 21 Oct 2019MITCommonJSTypes: None
$ npm install safe-regex

Key numbers

As of 25 Sept 2026
Weekly downloads
16.8m
+31% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 years ago
v2.1.1
GitHub stars
194
11 forks
Open issues / PRs
8 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

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

16,836,550 downloads last week, 72,056,888 in the last month. The 12-month change of +31% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
09 in total
Latest version
2.1.1, 21 Oct 20196 years ago
First published
13 Jul 2013
Last push to GitHub
1 Nov 20221,423 days before the snapshot
Repository archived
No
Open issues
8
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
809

Major versions

  1. v2 first release 2.0.0, 26 Oct 2018
  2. v1 first release 1.0.0, 6 Feb 2015
  3. v0 first release 0.0.0, 13 Jul 2013

Recent releases

VersionPublished
2.1.121 Oct 2019
2.1.021 Oct 2019
2.0.225 Feb 2019
2.0.12 Nov 2018
2.0.026 Oct 2018
1.1.019 Mar 2015
1.0.06 Feb 2015
0.0.122 Nov 2013
0.0.013 Jul 2013
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
16 kB
Dependencies (1)
regexp-tree
npm install safe-regex
  • jsDelivrhttps://cdn.jsdelivr.net/npm/safe-regex@2.1.1/
  • unpkghttps://unpkg.com/safe-regex@2.1.1/
  • esm.shhttps://esm.sh/safe-regex@2.1.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.