JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6497103
  • Score
    100M100P100Q211004F
  • License MIT

Join paths and globs.

Package Exports

  • globjoin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (globjoin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

globjoin

Join paths and globs.

Install

$ npm install --save 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.

Test

$ npm test