make-globs-absolute

1.0.0 • Public • Published

make-globs-absolute Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i make-globs-absolute

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jmversteeg