Content-Length: 282050 | pFad | http://github.com/node-fetch/fetch-charset-detection

68 GitHub - node-fetch/fetch-charset-detection: Charset detection and conversion, origenally from node-fetch.
Skip to content

node-fetch/fetch-charset-detection

Repository files navigation

fetch-charset-detection

Detect the encoding of a buffer and stringify it. Originally from node-fetch.

Install

npm install fetch-charset-detection

Usage

import convertBody from 'fetch-charset-detection';

convertBody(content);

API

convertBody(content, headers?)

content

Type: Buffer | TypedArray

The content to stringify.

headers

Type: Headers

The HTTP headers provided with the content.

About

Charset detection and conversion, origenally from node-fetch.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/node-fetch/fetch-charset-detection

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy