You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| CHANGELOG.md | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| index.js | 5 years ago | |
| package.json | 5 years ago | |
README.md
globjoin
Join paths and globs.
Install
$ npm install globjoin
API
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.
Context
Don't care.
Parameters
paths/globs
The paths/globs or arrays of paths/globs to join.
Returns
The result glob, or array of globs if any of paths/globs are array.
Example
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.
Issues
Test
$ npm test
Changelog
License
MIT

