Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

globjoin

amobiz24.4mMIT0.1.4TypeScript support: definitely-typed

Join paths and globs.

array, glob, glob join, globbing, multiple, negative glob, path, path join, patterns, wildcard

readme

globjoin

Join paths and globs.

MIT npm version David Dependency Badge

NPM NPM

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

Issues

Test

$ npm test

Changelog

Changelog

License

MIT

Author

Amobiz

changelog

globjoin changelog

2016/02/16 - 0.1.4

  • NPM: Remove accidental dependency.

2016/02/15 - 0.1.3

  • Bug Fix: Should use Array.prototype.slice().
  • Misc: Remove unused test fixtures.

2015/12/24 - 0.1.2

First Release