Detalhes do pacote

content-range

gregberge58.6kMIT2.0.2

Content-Range header formatter .

content-range, header, formatter, parser

readme (leia-me)

content-range

Node.js CI

Parser and formatter for HTTP/1.1 Content-Range header field.

Install

npm install content-range

Usage

import { format, parse } from "content-range";

format({
  unit: "bytes",
  start: 10,
  end: 20,
  size: 100,
});
// bytes 10-20/100

parse("bytes 10-20/100");
// {
//   unit: "bytes",
//   start: 10,
//   end: 20,
//   length: 100,
// }

License

MIT

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.0.2 (2021-08-30)

2.0.1 (2021-08-30)

Bug Fixes

2.0.0 (2021-02-07)

⚠ BREAKING CHANGES

  • package now parse and format, nothing else, see readme for changes.

Features

1.1.1 (2020-11-08)

Bug Fixes