Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.56 KB

Readme.md

File metadata and controls

37 lines (29 loc) · 1.56 KB

web-encoding

Node.js CI package downloads styled with prettier

This package provides TextEncoder and TextDecoder Encoding Standard APIs in a universal package. In the browsers it just exposes existing globals, in nodejs it exposes globals in newer node versions and ones from util module in older versions, and in the React Native environments it exposes these from the @zxing/text-encoding polyfill (installed as an optional dependency).

Package also works as ES module and CommonJS module.

Usage

import { TextEncoder, TextDecoder } from "web-encoding"

Install

npm install web-encoding