0.3.0 • Published 6 years ago

safer-regex v0.3.0

Weekly downloads
48
License
GPL-3.0
Repository
github
Last release
6 years ago

safer-regex

NPM version Linux Status Windows Status Dependency Status Coveralls

Detect possibly exponential-time regular expressions, thanks to safe-regex with cli support

Dev Installation

Install through NPM

npm install safer-regex

or

git clone git://github.com/hex7c0/safer-regex.git

API

inside nodejs project

var safe = require('safer-regex');

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 safer-regex

API

global cli with -g option

$ safer-regex -h

Usage:
  safer-regex [OPTIONS] [ARGS]

Options: 
  -v, --version          Display the current version
  -h, --help             Display help and usage details

Examples

Take a look at my examples

License GPLv3

0.3.0

6 years ago

0.2.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago