node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

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