1.0.1 • Published 9 years ago
@alexbinary/glob v1.0.1
glob
Simple glob with promise support 🎉
Uses @alexbinary/promisify by alexbinary
Install
$ npm install @alexbinary/glob
# or
$ yarn add @alexbinary/globUsage
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
1.0.1
9 years ago