regex-cache

JSON →
library 0.4.4 ·javascript abandoned
verified Jun 7, 2026

Memoize the results of calls to the RegExp constructor, avoiding repetitive runtime compilation of the same regex string and options. Version 0.4.4 (last released 2016) is stable but unmaintained; no updates in 8+ years. It caches based on stringified arguments, providing performance improvements when options are few and primitive, but not recommended for modern Node.js as V8's RegExp caching has improved significantly.