Skip to content

A got wrapper with encoding converting using iconv-lite

License

Notifications You must be signed in to change notification settings

fengkx/got-iconv

Repository files navigation

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.

About

A got wrapper with encoding converting using iconv-lite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •