{"library":"regex-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"abandoned","version":"0.4.4","tags":["javascript","cache","expression","regex","regexp","regular","regular expression","store","to-regex"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install regex-cache","imports":["const cache = require('regex-cache');","import cache from 'regex-cache';","function createRegex(str) { return new RegExp(str); }\nconst cached = cache(createRegex);"]},{"cmd":"yarn add regex-cache","imports":[]},{"cmd":"pnpm add regex-cache","imports":[]}],"homepage":"https://github.com/jonschlinkert/regex-cache","github":"https://github.com/jonschlinkert/regex-cache","docs":null,"changelog":null,"pypi":null,"npm":"regex-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}