CLI tool for Convenient Regular Expressions
With this command line tool, you can compile your Convenient Regular Expressions
ahead of time. You can put the cre
expression in a comment and
this tool will generate the standard JavaScript regular expression below.
Install it with:
npm install --save-dev cre-tool
For example, the code:
// cre` "Hello World" `
const myRegex = / /;
after running:
cre-tool compile '**/*.js'
becomes:
// cre` "Hello World" `
const myRegex = /Hello World/su;