Mr.Rager
Mr.Rager is a very relaxed parser written in Javascript for getting range representations from Content-Range headers. Mr.Rager won't yell about much, and if he does something went seriously wrong. If the parser experiences anything out of the ordinary it will gently degrade in behaviour of parsing, and in the instance of some really cooky headers, it will just give back a range representative of the whole file.
Usage
parse(rangeHeader, size)
returns an array where each element is an 2-element object of parsed values, the 'begining' key being the start of the range, and the 'end' key being the end of the range
Example
var http = ; var server = http; http;