1.0.5 • Published 7 years ago

header-field v1.0.5

Weekly downloads
52
License
MIT
Repository
github
Last release
7 years ago

Transform header fields into a properly formatted string, with lowercase characters and hyphens.

Installation

Npm

npm install header-field

Example

import { normalize } from "header-field";

normalize("content-type"); //-> "content-type"
normalize("content-Length"); //-> "content-length"
normalize("Content-Disposition"); //-> "content-disposition"

// Special case: referrer -> referer.
normalize("Referrer"); //-> "referer"

Contributions

  • Use npm test to build and run tests.

Please feel free to create a PR!

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.2

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago