0.2.2 • Published 6 years ago

normalize-charset v0.2.2

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Normalize Charset

Travis npm

Map charset to its normalized form, for example UTF8 to UTF-8.

Motivation

Encoding is a big thing. Terms like UTF8, UTF16 are widely used, but not exist according to RFC 5987.

This module is to solve problems like Error: unsupported charset "UTF8".

Installation

npm install normalize-charset

Use as an express middleware

app.use(require('normalize-charset'))

Use to patch content-type

require('normalize-charset').patchContentType()

content-type is used to parse charset by body-parser

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

7 years ago

0.1.0

7 years ago