globjoin (0.1.4)

Published 2026-02-24 13:57:25 +00:00 by atheaadmin

Installation

registry=
npm install globjoin@0.1.4
"globjoin": "0.1.4"

About this package

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

Dependencies

Development Dependencies

ID Version
mocha ^2.3.4
mocha-cases ^0.1.4

Keywords

array glob glob join globbing multiple negative glob path path join patterns wildcard
Details
npm
2026-02-24 13:57:25 +00:00
1
Amobiz
MIT
latest
2.3 KiB
Assets (1)
Versions (1) View all
0.1.4 2026-02-24