0.0.1 • Published 9 years ago
regex-safer v0.0.1
regex-safer
Detect possibly exponential-time regular expressions, thanks to safe-regex with cli support
Dev Installation
Install through NPM
npm install regex-saferor
git clone git://github.com/hex7c0/regex-safer.gitAPI
inside nodejs project
var safe = require('regex-safer');
safe('(a+){2}y');safe(regex , exception)
options
regex- String RegExp source that you want to check (required)exception- Boolean Raise Exception if True or return Boolean value (default "raise")
Console Installation
Install through NPM
npm install -g regex-saferAPI
global cli with -g option
$ regex-safer -h
Usage:
regex-safer [OPTIONS] [ARGS]
Options:
-v, --version Display the current version
-h, --help Display help and usage detailsExamples
Take a look at my examples
License GPLv3
0.0.1
9 years ago