universal-glob
v1.0.1
Published
drop-in replacement for glob lets you use promises or callbacks.
Maintainers
Readme
universal-glob

drop-in replacement for glob lets you use promises or callbacks.
Prerequisites
- When installed, uses
glob@latest - Backwards compatible to
[email protected] glob.Globconstructor is not promisified`
Installation
$ npm install --save universal-globUsage
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);License
ISC © Buster Collings
