Format HTTP Content-Range headers, RFC7233 compilant.
$ npm install http-content-range-format
format({
unit: 'items',
first: 0,
last: 9,
length: 100
});
// 'items 0-9/100'
format({ unit: 'items', first: 0, last: 9, length: 100 })
// items 0-9/100
format({ unit: 'items', first: 0, last: 9 })
// items 0-9/*
format({ unit: 'items', length: 100 })
// items */100
MIT