/decode-big5

A simple wrapper for iconv-lite to decode big5 encoded buffers to utf8 strings.

Primary LanguageTypeScript

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