Command line tool for natural-regex
You can install natural-regex-cli using npm:
npm install -g natural-regex-cli
Once you have installed natural-regex-cli, you can run the following in the terminal:
$ natural-regex --parse 'starts with "Lorem", then "foo" or "bar".' --object
Literal notation: /^(Lorem)(foo|bar)/
Constructor notation: new RegExp('^(Lorem)(foo|bar)')
$
Visit the Cli page in natural-regex Wiki for the full documentation.
This project adheres to Semantic Versioning.
Every release, along with the migration instructions, is documented on the Github Releases page.
Matteo Basso
Copyright (c) 2016, Matteo Basso.
natural-regex-cli source code is licensed under the MIT License.