Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
Fill in a range of numbers or letters, optionally passing an increment or step
to use, or create a regex-compatible range with options.toRegex
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch.
Takes a string, such as "1,2,3-10,5-8" and turns it into an array of numbers