Skip to content

purposeindustries/node-http-content-range-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-content-range-format Build Status

Format HTTP Content-Range headers, RFC7233 compilant.

Install

Install the package with npm.

$ npm install http-content-range-format

Usage

format({
  unit: 'items',
  first: 0,
  last: 9,
  length: 100
});
// 'items 0-9/100'

API

.format(obj)

format({ unit: 'items', first: 0, last: 9, length: 100 })
// items 0-9/100

format({ unit: 'items', first: 0, last: 9 })
// items 0-9/*

format({ unit: 'items', length: 100 })
// items */100

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published