Range Specifier Parser
A parser to handle Range Pagination Headers.
Inspired by range-parser.
Installation
npm install --save range-specifier-parser
Usage
The parser receives a byte-ranges-specifier
as its only argument.
; ;
Output
The parser outputs an object with the following properties according to the Byte Ranges spec:
first: 0 // `first-byte-pos`. last: 499 // `last-byte-pos`. unit: 'bytes' // `bytes-unit`.
Running tests
npm test
Release
npm version [<newversion> | major | minor | patch] -m "Release %s"
License
MIT