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.
Package also works as ES module and CommonJS module.
import { TextEncoder, TextDecoder } from "web-encoding"
npm install web-encoding