fetch-charset-detection
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i fetch-charset-detection

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

8.67 kB

Total Files

12

Last publish

Collaborators

  • richienb