# expand-braces

> Wrapper for [braces] to enable brace expansion for arrays of patterns.

Latest version **0.1.2** (published 2015-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install expand-braces
pnpm add expand-braces
yarn add expand-braces
bun add expand-braces
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-10-31 |
| First published | 2014-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | alpha, alphabetical, array, bash, brace, expand, expansion, file, filepath, fp, fs, glob, globbing, match, matches, matching, number, numerical, path, range, ranges, sh |

## Links

- npm: https://www.npmjs.com/package/expand-braces
- Repository: https://github.com/jonschlinkert/expand-braces
- Issues: https://github.com/jonschlinkert/expand-braces/issues
- npm.io page: https://npm.io/package/expand-braces

## Dependencies (3)

- [braces](https://npm.io/package/braces.md) ^0.1.2
- [array-slice](https://npm.io/package/array-slice.md) ^0.2.3
- [array-unique](https://npm.io/package/array-unique.md) ^0.2.1

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

- 0.1.2 (latest) — 2015-10-31
- 0.1.1 — 2014-10-26
- 0.1.0 — 2014-10-26

## README

# expand-braces [![NPM version](https://badge.fury.io/js/expand-braces.svg)](http://badge.fury.io/js/expand-braces)

> Wrapper for [braces] to enable brace expansion for arrays of patterns.

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i expand-braces --save
```

## Usage

```js
var expand = require('expand-braces');
```

Pass an array or list of strings:

```js
expand('{foo,bar}', '{baz,quux}');
// or
expand(['{foo,bar}', '{baz,quux}']);
// both yield => [ 'foo', 'bar', 'baz', 'quux' ];
```

Pass a function as the last argument to customize output:

```js
expand(['{a..e}', '{f..h}'], function (str) {
  return '_' + str;
});

//=> ['_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h']
```

## Related projects

* [braces](https://www.npmjs.com/package/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces… [more](https://www.npmjs.com/package/braces) | [homepage](https://github.com/jonschlinkert/braces)
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)
* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://www.npmjs.com/package/micromatch) | [homepage](https://github.com/jonschlinkert/micromatch)

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/expand-braces/issues/new).

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 31, 2015._

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