Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 735 Bytes

File metadata and controls

18 lines (13 loc) · 735 Bytes

Deprecated

Use @exodus/bytes/encoding-lite.js for a lightweight TextDecoder polyfill:

import { TextDecoder, TextEncoder } from '@exodus/bytes/encoding-lite.js'

or @exodus/bytes/encoding.js for a full polyfill with legacy multi-byte encodings support.

import { TextDecoder, TextEncoder } from '@exodus/bytes/encoding.js'

Warning

This old polyfill used Buffer, which on-Node.js is polyfilled with https://npmjs.com/buffer, which has UTF-8 handling mistakes in both encoder and decoder.

Instead, use a strict implementation from @exodus/bytes (see links and examples above).