Skip to content

Charset detection and conversion, originally from node-fetch.

License

Notifications You must be signed in to change notification settings

YoutacRandS-VA/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, originally from node-fetch.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%