# multi-glob

> Small wrapper around the glob module that allows globbing for multiple patterns at once

Latest version **1.0.2** (published 2018-12-11) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-11 |
| First published | 2012-11-26 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6 |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Christian Johansen |
| Maintainers | augustl, cjohansen, dominykas, dwittner |

## Links

- npm: https://www.npmjs.com/package/multi-glob
- Repository: https://github.com/busterjs/multi-glob
- Homepage: http://busterjs.org/docs/modules/multi-glob
- Issues: https://github.com/busterjs/multi-glob/issues
- npm.io page: https://npm.io/package/multi-glob

## Dependencies (1)

- [glob](https://npm.io/package/glob.md) 5.x

## Recent versions

- 1.0.2 (latest) — 2018-12-11
- 1.0.1 — 2015-11-10
- 1.0.0 — 2015-11-09
- 0.4.0 — 2012-11-26

## README

# multi-glob

[![Build status](https://secure.travis-ci.org/busterjs/multi-glob.svg?branch=master)](http://travis-ci.org/busterjs/multi-glob)

> Glob all the patterns!

`multi-glob` is a small wrapper around [node-glob](https://github.com/isaacs/node-glob)
that allows you to glob multiple patterns in one go, and optionally treat it as a failure
if any one pattern matches no files.

If you just need to glob multiple patterns in one go, you can simply do:

```javascript
var glob = require("multi-glob").glob;
glob(["all", "the", "patterns"], cb);
```

However, with `multi-glob`, you can do a "strict" glob, which will cause an
error if e.g. the pattern `"the"` in the previous example matched no files.


## API

### `multiGlob.glob(patterns[, options], callback);`

Works like [node-glob's glob](https://github.com/isaacs/node-glob>), with the
following two exceptions:

* `patterns` may be either a string pattern or an array of string patterns
* `options` may include `strict`. When set to `true`, `glob` will yield
  an error if either one of `patterns` matches no files.

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