Skip to content
JS
Package

regex-cache

Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in surprising performance improvements.

v0.4.4, 1 Sept 2017MITCommonJSTypes: NoneCaching
$ npm install regex-cache

Key numbers

As of 25 Sept 2026
Weekly downloads
2.2m
-23% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
9 years ago
v0.4.4
GitHub stars
40
7 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.9m (21 Oct 2025)Low 1.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.

2,223,435 downloads last week, 7,854,641 in the last month. The 12-month change of -23% 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
0.4.4, 1 Sept 20179 years ago
First published
9 Feb 2015
Last push to GitHub
1 Sept 20173,310 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
157

Major versions

  1. v0 first release 0.1.0, 9 Feb 2015

Recent releases

VersionPublished
0.4.41 Sept 2017
0.4.31 Apr 2016
0.4.225 Mar 2015
0.4.125 Mar 2015
0.3.017 Feb 2015
0.2.117 Feb 2015
0.2.09 Feb 2015
0.1.19 Feb 2015
0.1.09 Feb 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
is-equal-shallow
npm install regex-cache
  • jsDelivrhttps://cdn.jsdelivr.net/npm/regex-cache@0.4.4/
  • unpkghttps://unpkg.com/regex-cache@0.4.4/
  • esm.shhttps://esm.sh/regex-cache@0.4.4
PackageWeekly downloadsGzipLast releaseModuleComparison
cache-point256.5k-1 year agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.