drop-in replacement for glob lets you use promises or callbacks.
- When installed, uses
glob@latest
- Backwards compatible to
glob@3.0.0
glob.Glob
constructor is not promisified`
$ npm install --save universal-glob
const glob = require('universal-glob');
// use callbacks
glob(pattern, options, callback);
// use promises
glob(pattern, options).then(results => {
// ...
});
// use sync
let results = glob.sync(pattern);
ISC © Buster Collings