# globjoin

> Join paths and globs.

Latest version **0.1.4** (published 2016-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install globjoin
pnpm add globjoin
yarn add globjoin
bun add globjoin
```

## Health

**Score 33/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2016-02-16 |
| First published | 2015-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/globjoin) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Amobiz |
| Maintainers | amobiz |
| Keywords | array, glob, glob join, globbing, multiple, negative glob, path, path join, patterns, wildcard |

## Links

- npm: https://www.npmjs.com/package/globjoin
- Repository: https://github.com/amobiz/globjoin
- Issues: https://github.com/amobiz/globjoin/issues
- npm.io page: https://npm.io/package/globjoin

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.1.4 (latest) — 2016-02-16
- 0.1.3 — 2016-02-15
- 0.1.2 — 2015-12-23
- 0.1.1 — 2015-12-10

## README

# 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)

---
_Source: https://npm.io/package/globjoin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
