Sha256: 16d974547bfca0ed4c75b7da25ad7c074b5f31d5e1a1bd7b4e42df6e45fa623e

Contents?: true

Size: 1.62 KB

Versions: 24

Compression:

Stored size: 1.62 KB

Contents

# globjoin

Join paths and globs.

[![MIT](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/amobiz/globjoin/blob/master/LICENSE) [![npm version](https://badge.fury.io/js/globjoin.svg)](http://badge.fury.io/js/globjoin) [![David Dependency Badge](https://david-dm.org/amobiz/globjoin.svg)](https://david-dm.org/amobiz/globjoin)

[![NPM](https://nodei.co/npm/globjoin.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/globjoin.png?downloads=true&downloadRank=true&stars=true) [![NPM](https://nodei.co/npm-dl/globjoin.png?months=6&height=3)](https://nodei.co/npm/globjoin/)

## Install
``` bash
$ npm install globjoin
```

## API

### `globjoin(globs...)`
Join paths and globs.

Like Node's [path.join()](https://nodejs.org/api/path.html#path_path_join_path1_path2) 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
``` javascript
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](https://github.com/amobiz/globjoin/issues)

## Test

``` bash
$ npm test
```

## Changelog

[Changelog](./CHANGELOG.md)

## License
MIT

## Author
[Amobiz](https://github.com/amobiz)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/globjoin/README.md
trusty-cms-5.0.7 node_modules/globjoin/README.md
trusty-cms-5.0.6 node_modules/globjoin/README.md
trusty-cms-5.0.5 node_modules/globjoin/README.md
trusty-cms-5.0.4 node_modules/globjoin/README.md
trusty-cms-5.0.3 node_modules/globjoin/README.md
trusty-cms-5.0.2 node_modules/globjoin/README.md
trusty-cms-5.0.1 node_modules/globjoin/README.md
trusty-cms-4.3.5 node_modules/globjoin/README.md
trusty-cms-5.0.0 node_modules/globjoin/README.md
trusty-cms-4.3.4 node_modules/globjoin/README.md
trusty-cms-4.3.3 node_modules/globjoin/README.md
trusty-cms-4.3.2 node_modules/globjoin/README.md
trusty-cms-4.3.1 node_modules/globjoin/README.md
trusty-cms-4.3 node_modules/globjoin/README.md
trusty-cms-4.2.3 node_modules/globjoin/README.md
trusty-cms-4.2.2 node_modules/globjoin/README.md
trusty-cms-4.2.1 node_modules/globjoin/README.md
trusty-cms-4.2 node_modules/globjoin/README.md
trusty-cms-4.1.9 node_modules/globjoin/README.md