glob-tester-cli

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i glob-tester-cli

Weekly Downloads

2

Version

0.1.0

License

Apache-2.0

Last publish

Collaborators

  • garthdb