matcher-cli
Version:
Simple wildcard matching
38 lines (26 loc) • 604 B
Markdown
# matcher-cli
> Simple [wildcard](https://en.wikipedia.org/wiki/Wildcard_character) matching
Useful when you want to accept loose string input and regexes/globs are too convoluted.
## Install
```sh
npm install --global matcher-cli
```
## Usage
```
$ matcher --help
Usage
$ <input> | matcher <pattern> […]
Options
--case-sensitive Case-sensitive matching
Example
$ ls
cli.js
license
package.json
readme.md
test.js
$ ls | matcher '*.js' '!test.js'
cli.js
```
## Related
- [matcher](https://github.com/sindresorhus/matcher) - API for this package