safe-regex : detect possibly catastrophic, exponential-time regular expressions. You can installing safe-regex 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 safe-regex $ sudo npm install -g safe-regex
If want to update the safe-regex package execute the command as below,
$ sudo npm update safe-regex
Update package globally,
$ npm install -g safe-regex
$ sudo git clone https://github.com/rektide/safe-regex.git
$ sudo npm install -g ./safe-regex
safe-regex@1.1.0 /usr/lib/node_modules/safe-regex
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall safe-regex
| Package Name | safe-regex |
| Version | 1.1.0 |
| Description | detect possibly catastrophic, exponential-time regular expressions |
| Released Date | 2015-03-19T00:30:21.780Z |
| Published by | substack |
| How to Learn | https://www.npmjs.com/package/safe-regex/tutorial |