node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

list-parser

list-parser

Parse comma and range-delimited lists.

Examples

var parse = require('list-parser');
 
parse('1,2,3');
// => [1,2,3] 
 
parse('1..5');
// => [1,2,3,4,5] 

License

MIT