decode-big5
v0.1.3
Published
A simple tool to decode big5 buffer to utf8 string.
Downloads
7
Maintainers
Readme
decode-big5
A simple wrapper for iconv-lite to decode big5 encoded buffers to utf8 strings.
Installation
npm install decode-big5
or
yarn add decode-big5
Usage
import { decodeBig5 } from "decode-big5";
const response = await got.get("https://some.chinese.website.com");
const decodedBody = decodeBig5(response.rawBody);
console.log(decodedBody); // Decoded string