https://github.com/mbasso/natural-regex-cli
Command line tool for natural-regex
https://github.com/mbasso/natural-regex-cli
Last synced: about 1 year ago
JSON representation
Command line tool for natural-regex
- Host: GitHub
- URL: https://github.com/mbasso/natural-regex-cli
- Owner: mbasso
- License: mit
- Created: 2016-11-15T19:11:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T21:00:32.000Z (over 9 years ago)
- Last Synced: 2025-03-07T16:42:55.596Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# natural-regex-cli
[](https://travis-ci.org/mbasso/natural-regex-cli)
[](https://www.npmjs.com/package/natural-regex-cli)
[](https://www.npmjs.com/package/natural-regex-cli)
> Command line tool for [natural-regex](https://github.com/mbasso/natural-regex)
## Installation
You can install natural-regex-cli using [npm](https://www.npmjs.com/package/natural-regex-cli):
```bash
npm install -g natural-regex-cli
```
## Usage
Once you have installed natural-regex-cli, you can run the following in the terminal:
```bash
$ natural-regex --parse 'starts with "Lorem", then "foo" or "bar".' --object
Literal notation: /^(Lorem)(foo|bar)/
Constructor notation: new RegExp('^(Lorem)(foo|bar)')
$
```
## Documentation
Visit the [Cli page](https://github.com/mbasso/natural-regex/wiki/Cli) in [natural-regex Wiki](https://github.com/mbasso/natural-regex/wiki) for the full documentation.
## Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/mbasso/natural-regex-cli/releases) page.
## Authors
**Matteo Basso**
- [github/mbasso](https://github.com/mbasso)
- [@teo_basso](https://twitter.com/teo_basso)
## Copyright and License
Copyright (c) 2016, Matteo Basso.
natural-regex-cli source code is licensed under the [MIT License](https://github.com/mbasso/natural-regex-cli/blob/master/LICENSE.md).