3.0.0-beta.0 • Published 4 years ago
got-iconv v3.0.0-beta.0
Got-iconv
A got wrapper with automaticlly encoding conversion using iconv-lite.
npm i got-iconvBuild 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.