gloth
Multiple glob expansions with exclusions and hooks. Possible to use asynchronously and synchronously.
Installation
$ npm install gloth
Usage
var excludeSizeHigherThen = ;
var excludeSizeHigherThen = ; var matches = gloth;// Do things with matches
The example above would expand all files in the src
folder, exclude any file named b.js
and run the excludeSizeHigherThen
hook. This hook would look something like:
var fs = ; module { return { return matches; };};
The hook above was written synchronously. The asynchronous version would be:
var fs = ;var async = ; module { return { async; };};
For more information on how hooks are done, please check the built-in hooks in the source code.
The options
available are the same as the glob ones.
IMPORTANT: sync hooks can be run in gloth async and sync, but async hooks can only be used with gloth async.
License
Released under the MIT License.