Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

universal-glob

busterc11ISC1.0.1

drop-in replacement for glob lets you use promises or callbacks.

directories, dirs, expand, files, fnmatch, folders, glob, glob-promise, globbing, globby, globs, match, matcher, minimatch, paths, promise, promisify, universal, universalify, wildcard, wildcards

readme

universal-glob NPM version Build Status Dependency Status Coverage percentage

drop-in replacement for glob lets you use promises or callbacks.

Prerequisites

  • When installed, uses glob@latest
  • Backwards compatible to `glob@3.0.0`
  • glob.Glob constructor is not promisified`

Installation

$ npm install --save universal-glob

Usage

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