Name: range-specifier-parser
Owner: Uphold
Description: Range Specifier Parser
Created: 2015-01-27 18:21:35.0
Updated: 2017-07-18 17:19:38.0
Pushed: 2016-05-18 17:35:46.0
Homepage: null
Size: 12
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A parser to handle Range Pagination Headers.
Inspired by range-parser.
npm install --save range-specifier-parser
The parser receives a byte-ranges-specifier
as its only argument.
rt parser from 'range-specifier-parser';
er('bytes=0-499');
The parser outputs an object with the following properties according to the Byte Ranges spec:
rst: 0, // `first-byte-pos`.
st: 499, // `last-byte-pos`.
it: 'bytes' // `bytes-unit`.
test
npm version [<newversion> | major | minor | patch] -m "Release %s"
MIT