peach a19a732be8 commit message | há 2 anos atrás | |
---|---|---|
.. | ||
CHANGELOG.md | há 2 anos atrás | |
LICENSE | há 2 anos atrás | |
README.md | há 2 anos atrás | |
index.js | há 2 anos atrás | |
package.json | há 2 anos atrás |
Join paths and globs.
$ npm install globjoin
globjoin(globs...)
Join paths and globs.
Like Node's path.join() that join all arguments together and normalize the resulting path, globjoin
takes arbitrary number of paths and/or arrays of paths, join them together and take care of negative globs.
Don't care.
paths/globs
The paths/globs or arrays of paths/globs to join.
The result glob, or array of globs if any of paths/globs are array.
var join = require('globjoin');
var globs1 = join(__dirname, ['**/*.js', '!**/test*.js']);
var globs2 = join('test', 'fixture', 'app', ['views', '!services'], ['**/*', '!*.{js,json,coffee,ts}']);
Check out test for more examples.
$ npm test
MIT