0.1.0 • Published 7 years ago

glob-tester-cli v0.1.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

Glob Tester CLI npm version

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