Skip to content
JS
Package

regexp.escape

A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping

v2.0.1, 9 Jul 2024MITCommonJSTypes: NonePolyfills and shims
$ npm install regexp.escape

Key numbers

As of 25 Sept 2026
Weekly downloads
504k
+189% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
2 years ago
v2.0.1
GitHub stars
44
2 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 773.6k (18 Aug 2026)Low 164.7k (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.

504,006 downloads last week, 2,479,828 in the last month. The 12-month change of +189% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
06 in total
Latest version
2.0.1, 9 Jul 20242 years ago
First published
13 Jun 2015
Last push to GitHub
30 Dec 2025269 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
1
Dependents on npm
36

Major versions

  1. v2 first release 2.0.0, 9 Jul 2024
  2. v1 first release 1.0.0, 13 Jun 2015

Recent releases

VersionPublished
2.0.19 Jul 2024
2.0.09 Jul 2024
1.1.013 Jan 2020
1.0.221 Jul 2015
1.0.113 Jun 2015
1.0.013 Jun 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
56 kB
Dependencies (6)
for-eachcall-bindes-errorses-abstractsafe-regex-testdefine-properties
npm install regexp.escape
  • jsDelivrhttps://cdn.jsdelivr.net/npm/regexp.escape@2.0.1/
  • unpkghttps://unpkg.com/regexp.escape@2.0.1/
  • esm.shhttps://esm.sh/regexp.escape@2.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
weakmap-polyfill1m-5 years agoCommonJS-
@thednp/dommatrix182k-22 days agoESM + CommonJS-
map-like23.5k-9 years agoCommonJS-
object_values18k-9 years agoCommonJS-
object-keys79.8m-7 years agoCommonJS-
@bloomberg/record-tuple-polyfill76.8k-4 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.