CLI implementation of glob to test it
Just a simple CLI tool to test glob patterns.
It's meant to be a CLI tool to test glob patterns, so install it globally via npm.
$ npm install -g glob-tester-cli
Pass in the pattern as a string in quotes:
$ glob '*.js'
> Pattern: *.js
> Options: { }
> index.js
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