explain-regexp
v0.7.0
Published
CLI util for fast analyze of RegExp
Downloads
15
Readme
Regexp explainer
CLI util for generating comprehensive report about regexp. Powered by ECMA-262 Regexp parser
Requires Node >= 16
Usage
You can install package through your package manager or use in directly with npx
Installation
$ npm i explain-regexp -g
$ yarn global add explain-regexp
$ pnpm install --global explain-regexp
CLI
Create report about full regexp:
$ explain-regexp "/[A-z]+/gm"
Create report about part of regexp:
$ explain-regexp part "(?:Hello)"
options
--color
--no-color
forces colors on/off, default behavior depends on env;-d, --debug
shows full error stacktrace;