NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #5 most downloaded on npm
Brace expansion as known from sh/bash
Last release 20 days ago
14 Sep 2026
Ships unpredictably
gaps range from 9 days to 1.3 years
Rarely documented
notes for 9 of 59 stable releases
1 version withdrawn
withdrawn after publishing
13 years old
60 releases · first in 2013
Nothing published for this version
Nothing published for this version
This project publishes no release notes. Between v5.0.9 and v5.0.10 there were 6 commits, 3 of them substantive:
This project publishes no release notes. Between v5.0.9 and v5.0.10 there were 6 commits, 3 of them substantive:
One column per quarter.
This project publishes no release notes. Between v5.0.8 and v5.0.9 there were 5 commits, 2 of them substantive:
This project publishes no release notes. Between v5.0.8 and v5.0.9 there were 5 commits, 2 of them substantive:
This project publishes no release notes. Between v5.0.7 and v5.0.8 there were 10 commits, 1 of them substantive:
This project publishes no release notes. Between v5.0.7 and v5.0.8 there were 10 commits, 1 of them substantive:
This project publishes no release notes. Between v5.0.6 and v5.0.7 there were 8 commits, 4 of them substantive:
This project publishes no release notes. Between v5.0.6 and v5.0.7 there were 8 commits, 4 of them substantive:
Nothing published for this version
Nothing published for this version
This project publishes no release notes. Between v5.0.3 and v5.0.4 there were 3 commits, 2 of them substantive:
This project publishes no release notes. Between v5.0.3 and v5.0.4 there were 3 commits, 2 of them substantive:
This project publishes no release notes. Between v5.0.2 and v5.0.3 there were 4 commits, 2 of them substantive:
This project publishes no release notes. Between v5.0.2 and v5.0.3 there were 4 commits, 2 of them substantive:
SECURITY.mdThis project publishes no release notes. Between v4.0.1 and v5.0.2 there were 6 commits, 3 of them substantive:
This project publishes no release notes. Between v4.0.1 and v5.0.2 there were 6 commits, 3 of them substantive:
Fix potential ReDoS Vulnerability or Inefficient Regular Expression (#65) 0b6a978
https://github.com/juliangruber/brace-expansion/compare/v4.0.0...v4.0.1
This project publishes no release notes. Between v4.0.0 and v4.0.1 there were 3 commits, 2 of them substantive:
feat: use string replaces instead of splits (#64) 278132b
tea.yaml 70e4c1bhttps://github.com/juliangruber/brace-expansion/compare/v3.0.0...v4.0.0
As a precaution to not risk breaking anything with 278132b, this is a new semver major release
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix potential ReDoS Vulnerability or Inefficient Regular Expression (#65) 15f9b3c
https://github.com/juliangruber/brace-expansion/compare/v3.0.0...v3.0.1
Switch to ES Modules and balanced-match 3.0.0 (#62) c0360e8
test e3dd8aehttps://github.com/juliangruber/brace-expansion/compare/v2.0.1...v3.0.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Backport v5.0.6 change to v2 (#109) c3a817c
https://github.com/juliangruber/brace-expansion/compare/v2.1.0...v2.1.1
Nothing published for this version
Nothing published for this version
Fix potential ReDoS Vulnerability or Inefficient Regular Expression (#65) 36603d5
https://github.com/juliangruber/brace-expansion/compare/v2.0.1...v2.0.2
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Backport v5.0.6 change to v1 (#111) 0b09384
https://github.com/juliangruber/brace-expansion/compare/v1.1.14...v1.1.15
Nothing published for this version
Nothing published for this version
Fix potential ReDoS Vulnerability or Inefficient Regular Expression (#65) c3c73c8
https://github.com/juliangruber/brace-expansion/compare/v1.1.11...v1.1.12
Brace expansion, as known from sh/bash, in JavaScript.
Brace expansion, as known from sh/bash, in JavaScript.
var expand = require('brace-expansion');
expand('file-{a,b,c}.jpg')
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
expand('-v{,,}')
// => ['-v', '-v', '-v']
expand('file{0..2}.jpg')
// => ['file0.jpg', 'file1.jpg', 'file2.jpg']
expand('file-{a..c}.jpg')
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
expand('file{2..0}.jpg')
// => ['file2.jpg', 'file1.jpg', 'file0.jpg']
expand('file{0..4..2}.jpg')
// => ['file0.jpg', 'file2.jpg', 'file4.jpg']
expand('file-{a..e..2}.jpg')
// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']
expand('file{00..10..5}.jpg')
// => ['file00.jpg', 'file05.jpg', 'file10.jpg']
expand('{{A..C},{a..c}}')
// => ['A', 'B', 'C', 'a', 'b', 'c']
expand('ppp{,config,oe{,conf}}')
// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']
var expand = require('brace-expansion');
Return an array of all possible and valid expansions of str. If none are
found, [str] is returned.
Valid expansions are:
/^(.*,)+(.+)?$/
// {a,b,...}
A comma separated list of options, like {a,b} or {a,{b,c}} or {,a,}.
/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
// {x..y[..incr]}
A numeric sequence from x to y inclusive, with optional increment.
If x or y start with a leading 0, all the numbers will be padded
to have equal length. Negative numbers and backwards iteration work too.
/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
// {x..y[..incr]}
An alphabetic sequence from x to y inclusive, with optional increment.
x and y must be exactly one character, and if given, incr must be a
number.
For compatibility reasons, the string ${ is not eligible for brace expansion.
With npm do:
npm install brace-expansion
This module is proudly supported by my Sponsors!
Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my Patreon. Not sure how much of my modules you're using? Try feross/thanks!
(MIT)
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →