regexgen
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "regexgen", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Generate regular expressions that match a set of strings", | ||
"main": "index.js", | ||
"bin": { | ||
"regexgen": "bin/cli.js" | ||
}, | ||
"dependencies": { | ||
@@ -7,0 +10,0 @@ "jsesc": "^2.3.0", |
@@ -24,5 +24,14 @@ # regexgen | ||
t.toRegExp(); // => /foo(?:ba[rz])/ | ||
t.toRegExp(); // => /fooba[rz]/ | ||
``` | ||
## CLI | ||
`regexgen` also has a simple CLI to generate regexes using inputs from the command line. | ||
``` | ||
$ regexgen | ||
Usage: regexgen [-gimuy] string1 string2 string3... | ||
``` | ||
## How does it work? | ||
@@ -29,0 +38,0 @@ |
17269
13
548
58