# glob-concat

> Merge a mixed list of files and globs into a list of files.

Latest version **1.0.3** (published 2022-11-19) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install glob-concat
pnpm add glob-concat
yarn add glob-concat
bun add glob-concat
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-11-19 |
| First published | 2015-03-11 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 39.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Neil Freeman |
| Maintainers | fitnr |
| Keywords | glob, merge glob, concatenate globs, list of globs, globs list, files, utility |

## Links

- npm: https://www.npmjs.com/package/glob-concat
- Repository: https://github.com/fitnr/glob-concat
- Issues: https://github.com/fitnr/glob-concat/issues
- npm.io page: https://npm.io/package/glob-concat

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^6.0.3
- [async](https://npm.io/package/async.md) ^2.6.4

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-11-19
- 1.0.2 — 2020-05-10
- 1.0.1 — 2015-12-31
- 1.0.0 — 2015-03-11

## README

# glob-concat

Node utility for merging a list of globs or files into a single unique list.

Rougly equivalent to the bash command: `find . -name '<pattern>' -or -name '<pattern>' ...`.

Run synchronously or asynchronously.

````javascript
globConcat.sync(['tests/item.*', 'tests/*.txt']);

// ['tests/item.txt', 'tests/item.bar', 'tests/foo.txt']

globConcat(['tests/item.*', 'tests/*.txt'], function(err, matches) {
    if (err) throw err;
    /* do stuff with matches */
});
````

Just a thin wrapper around [glob](https://www.npmjs.com/package/glob), options are passed on.
````javascript
var opts = {nonull: true};

globConcat(['tests/item.*', 'tests/*.txt'], opts, function(err, matches) {
    if (err) throw err;
    /* do stuff with matches */
});
````

Happily accepts a single string as input.
````javascript
// this is the same as running glob.sync
globConcat.sync('tests/item.*');
````

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