0.1.0 • Published 8 years ago
glob-tester-cli v0.1.0
Glob Tester CLI 
Just a simple CLI tool to test glob patterns.
Installation
It's meant to be a CLI tool to test glob patterns, so install it globally via npm.
$ npm install -g glob-tester-cli
Usage
Pass in the pattern as a string in quotes:
$ glob '*.js'
> Pattern: *.js
> Options: { }
> index.js
Root Option
Optionally, you can define the root option (where /
points to).
$ glob '*.js' --root ~/Projects
> Pattern: *.js
> Options: { root: /Users/garthdb/Projects }
> index.js
If no directory is included with --root
the CLI assumes process.cwd()
:
$ cd ~/
$ glob '*.js' --root
> Pattern: *.js
> Options: { root: /Users/garthdb/ }
> index.js