Parses HTTP Range headers according to RFC7233. Current version 1.0.0, stable with no recent updates. Converts a range header string into a structured object with unit and range details (first, last, suffix, or multiple ranges). Lightweight, no dependencies. Compared to alternatives like `range-parser`, this library returns a more detailed object and supports multi-range headers.
npm install http-range-parseVerified import paths — ran on the pinned version, not inferred.
Parses an HTTP Range header and prints the structured result with unit and range objects.
Validate input header string before parsing; handle errors with try/catch.
Consider using alternatives like `range-parser` or `http-range-parser` for ongoing support.
Check for `suffix` property separately and ensure it's not used with `first`/`last` in same header.
Manually verify the unit is one of the expected values (e.g., 'bytes') if required.
Use `import parse from 'http-range-parse'` or `const parse = require('http-range-parse')` depending on module system.Run `npm install http-range-parse`.
Check header format; ensure it follows RFC7233 (e.g., 'unit=x-y').
No dependency data recorded yet.