textdecode

1.2.7 • Public • Published

textdecode

Streaming text decoder that preserves multibyte Unicode characters.

npm i textdecode

Usage

const TextDecoder = require("textdecode");

const td = new TextDecoder();

td.push(Buffer.of(0xf0, 0x9f, 0x92)); // returns ''
td.push(Buffer.of(0xa9)); // returns '💩'

Readme

Keywords

none

Package Sidebar

Install

npm i textdecode

Weekly Downloads

122

Version

1.2.7

License

Apache-2.0

Unpacked Size

79.2 kB

Total Files

7

Last publish

Collaborators

  • aliaudit