1.0.4 • Published 7 years ago

globbit v1.0.4

Weekly downloads
16
License
VOL
Repository
github
Last release
7 years ago

globbit

List files in folders using 'glob' syntax and gruntjs 'expand' algorithm.

install

The normal npm way:

npm install globbit

use it

globbit [OPTIONS] [...MINIMATCH EXPRESSIONS]

Example:

globbit --nosort 'path/**/*.js' '!path/**/*.spec.js'

Options are parsed with minimist, and passed directly to the glob module.

That means --nosort becomes { nosort: true }, and --cwd='/path' becomes { cwd: '/path' } as options passed to glob.

You can add as many minimatch expressions as you want. Excluded patterns are made by putting ! at the start of the expression.

Note: In some OS systems, asterisks will auto-expand before being passed in to this module, when surrounded with double quotes, e.g. "path/**/*.js. To prevent this, simply use single quotes in your minimatch expressions.

output

Each filename is output with process.stdout.write so you should be able to pipe the output to any other normal program.

license

Published and released under the Very Open License.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago