make-globs-absolute
v1.0.0
Published
Map an array of globs to their absolute path equivalent
Downloads
773
Readme
make-globs-absolute
Map an array of globs to their absolute path equivalent
Install
$ npm install --save make-globs-absolute
Usage
var makeGlobsAbsolute = require('make-globs-absolute');
makeGlobsAbsolute(['foo']);
//=> ['/Users/jmversteeg/foo']
makeGlobsAbsolute(['!foo']);
//=> ['!/Users/jmversteeg/foo']
makeGlobsAbsolute(['foo', '!foo/bar'], '/bar');
//=> ['bar/foo', '!bar/foo/bar']
API
makeGlobsAbsolute(input, wd)
input
Type: string[]
Array of globs.
wd
Type: string
Optional (default: process.cwd()
)
Working directory
License
MIT © JM Versteeg