decode-big5
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i decode-big5

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

570 kB

Total Files

11

Last publish

Collaborators

  • bwsix