Simple range converter
npm i range-converter
const convert = require('range-converter');
convert([1,3,4,5,6,7,8]).then((res) => {
console.log(res) // '1,3-8'
})
$ npm run test
$ npm run coverage
Open in your browser file: './coverage/index.html'...
$ npm run lint
MIT.