3.0.0-beta.0 • Published 3 years ago

got-iconv v3.0.0-beta.0

Weekly downloads
88
License
MIT
Repository
github
Last release
3 years ago

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.