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.. You can installing regex-cache npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install regex-cache $ sudo npm install -g regex-cache
If want to update the regex-cache package execute the command as below,
$ sudo npm update regex-cache
Update package globally,
$ npm install -g regex-cache
$ sudo git clone https://github.com/rektide/regex-cache.git
$ sudo npm install -g ./regex-cache
regex-cache@0.4.4 /usr/lib/node_modules/regex-cache
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall regex-cache
| Package Name | regex-cache |
| Version | 0.4.4 |
| Description | 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. |
| Released Date | 2017-09-01T15:18:53.060Z |
| Published by | doowb |
| How to Learn | https://www.npmjs.com/package/regex-cache/tutorial |