1.0.0 • Published 10 years ago

globs-to-files v1.0.0

Weekly downloads
3,336
License
MIT
Repository
-
Last release
10 years ago

globs-to-files Build Status

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