parse-http-range-header
v1.0.3
Published
[![Build Status](https://travis-ci.org/gpryor/parse-http-range-header.svg?branch=master)](https://travis-ci.org/gpryor/parse-http-range-header)
Downloads
849
Readme
parse-http-range-header
Syntax-verify and parse HTTP request range header
var parseRangeHeader = require('parse-http-range-header')
parseRangeHeader('pages=30-40, 60-70')
// -> { unit: 'pages', ranges: [ [ 30, 40 ], [ 60, 70 ] ] }