got-iconv
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-beta.0 • Public • Published

Got-iconv

A got wrapper with automaticlly encoding conversion using iconv-lite.

Build Status Coverage Status Install Size XO code style

NPM

npm i got-iconv

Build on top of iconv-lite and some awesome WHATWG packages maked by the jsdom team.

Only two extra options.

options._throwEncodingNotDetected

Whether reject the promise or destory the stream when not any of these encoding is detected.

defaults value is false, which will use utf8 as a fallback.

options._throwEncodingNotSupported

Whether reject the promise or destory the stream when the encoding is no supported by iconv-lite.

defaults value is false, which will use utf8 as a fallback.

You may want to see some example in test cases.

Enjoy

No more things! From now you don't really need to handle the MIME type and charset. Especially for non English users.

Package Sidebar

Install

npm i got-iconv

Weekly Downloads

28

Version

3.0.0-beta.0

License

MIT

Unpacked Size

11 kB

Total Files

6

Last publish

Collaborators

  • fengkx