npm

Need private packages and team management tools?Check out npm Orgs. »

@alexbinary/glob

1.0.1 • Public • Published

glob

Simple glob with promise support 🎉

npm GitHub release Build Status dependencies Status devDependencies Status

Based on glob by isaacs

Uses @alexbinary/promisify by alexbinary

Install

Install with npm or yarn :

$ npm install @alexbinary/glob
# or 
$ yarn add @alexbinary/glob

Usage

let glob = require('@alexbinary/glob')
 
glob('/foo/**').then((filepaths) => {
  console.log('found files: ' + filepaths)
})

Documentation

let glob = require('@alexbinary/glob')

glob(pattern)

Returns files that match pattern.

This method supports both Promise and node callback style, and resolves with an array of string containing the absoute file paths to all matched files.

glob.sync(pattern)

Synchronous version.

Licence

MIT

install

npm i @alexbinary/glob

Downloadsweekly downloads

4

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability