### Install globjoin via npm Source: https://github.com/amobiz/globjoin/blob/master/README.md Use this command to install the globjoin package in your project. ```bash $ npm install globjoin ``` -------------------------------- ### Join paths and globs using globjoin Source: https://github.com/amobiz/globjoin/blob/master/README.md Demonstrates how to import globjoin and join multiple paths and glob arrays, including negative patterns. ```javascript var join = require('globjoin'); var globs1 = join(__dirname, ['**/*.js', '!**/test*.js']); var globs2 = join('test', 'fixture', 'app', ['views', '!services'], ['**/*', '!*.{js,json,coffee,ts}']); ``` -------------------------------- ### Run tests for globjoin Source: https://github.com/amobiz/globjoin/blob/master/README.md Execute the test suite for the package using npm. ```bash $ npm test ``` -------------------------------- ### globjoin(globs...) Source: https://github.com/amobiz/globjoin/blob/master/README.md Joins an arbitrary number of paths and/or arrays of paths, normalizing the result and handling negative globs. ```APIDOC ## globjoin(globs...) ### Description Joins an arbitrary number of paths and/or arrays of paths together. It normalizes the resulting path and handles negative globs appropriately. ### Parameters - **paths/globs** (string|Array) - Required - The paths, globs, or arrays of paths/globs to join. ### Returns - **result** (string|Array) - The resulting glob string, or an array of globs if any of the input arguments were arrays. ### Example ```javascript var join = require('globjoin'); var globs1 = join(__dirname, ['**/*.js', '!**/test*.js']); var globs2 = join('test', 'fixture', 'app', ['views', '!services'], ['**/*', '!*.{js,json,coffee,ts}']); ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.