/glob-array

Simple wrapper for NodeJS's glob that process an array of patterns to match

Primary LanguageJavaScriptMIT LicenseMIT

Glob Array

Simple wrapper for node-glob that allows you to pass in an array of patterns.

Usage

var patterns = [
  'pattern1',
  'pattern2'
];
var globOptions = {
  /* any regular node-glob option */
};

//async
globArray(patterns, globOptions, function (er, files) {
  // your code
});

//sync
var files = globArray.sync(patterns, globOptions);

License

MIT