This package has been deprecated

Author message:

WARNING: This project has been renamed to safer-regex. Install using safer-regex instead.

regex-safer

0.0.1 • Public • Published

regex-safer

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

or

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

API

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

API

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 details

Examples

Take a look at my examples

License GPLv3

Readme

Keywords

Package Sidebar

Install

npm i regex-safer

Weekly Downloads

1

Version

0.0.1

License

GPL-3.0

Last publish

Collaborators

  • hex7c0