Parse ranges and unions: '1-3,5-7,12' → [1, 2, 3, 5, 6, 7, 12]
npm install range-parser2


> Parse ranges and unions: '1-3,5-7,12' → [1, 2, 3, 5, 6, 7, 12]
Download manually or with package-manager.
#### npm
```
npm install --save range-parser2
``
bower install --save range-parser2
`javascript
var parseRange = require('range-parser2');
console.log(parseRange('5-12,15'));
//=> [5, 6, 7, 8, 9, 10, 11, 12, 15];
``
The name range-parser was already taken so I went for range-parser2.
I am open to a better name ;)
Contributions are very welcome, either on the documentation or on
the code.
You may:
- report any issue
you've encountered;
- fork and create a pull request.
ISC © Julien Fontanet