A got wrapper with automaticlly encoding conversion using iconv-lite.
npm i got-iconv
Build on top of iconv-lite and some awesome WHATWG
packages maked by the jsdom team.
Only two extra options.
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.
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.
No more things! From now you don't really need to handle the MIME type and charset. Especially for non English users.