range-parser
- Version 2.0.0
- Published
- 24.2 kB
- No dependencies
- MIT license
Install
npm i range-parseryarn add range-parserpnpm add range-parserOverview
Range header field string parser
Index
Functions
function combineRanges
combineRanges: (ranges: readonly Range[]) => readonly RangeWithIndex[];Combine overlapping & adjacent ranges.
function format
format: (obj: Pick<Result, 'type' | 'ranges'>) => string;Format normalized ranges as a "Range" header value.
function parse
parse: (size: number, str: string) => Result;Parse "Range" header
strrelative to the given filesize.
Interfaces
interface Range
interface Range {}Range object contains normalized start and end positions.
interface RangeWithIndex
interface RangeWithIndex extends Range {}property index
index: number;Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/range-parser.
- Markdown[](https://www.jsdocs.io/package/range-parser)
- HTML<a href="https://www.jsdocs.io/package/range-parser"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3083 ms. - Missing or incorrect documentation? Open an issue for this package.
