universal-glob

1.0.1 • Public • Published

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

/universal-glob/

    Package Sidebar

    Install

    npm i universal-glob

    Weekly Downloads

    7

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.78 kB

    Total Files

    5

    Last publish

    Collaborators

    • buster