globs-to-files
v1.0.0
Published
Expand multiple globs into file paths
Downloads
21,782
Readme
globs-to-files
Expand multiple globs into absolute file paths
Install
$ npm install --save globs-to-files
Usage
var deglob = require('globs-to-files')
deglob(['test/**/*.js', 'src/*.js'], null, function (err, files) {
})
var files = deglob.sync(['test/**/*.js'])
API
deglob(globArray, [options], callback)
-> array[string]
globArray
Required
Type: array
An array of globs to be expanded into absolute file paths.
options
Type: object
Options to pass to node-glob.
callback
Required
Type: function
Callback to call with file paths.
License
MIT