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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    0
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i decode-big5

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

570 kB

Total Files

11

Last publish

Collaborators

  • bwsix