@cto.af/textdecoder

0.2.0 • Public • Published

Simple TextDecoder polyfill

I needed this in two different projects, so I pulled it out. All of the existing TextDecoder polyfills try to do too much for what I needed. The goal here is to NOT require any Unicode tables, keeping this as small as possible.

This just finds the best TextDecoder instance it can, and mocks in a dirty one for old or broken environments.

Use

const TextDecoder = require('@cto.af/textdecoder')

API

See MDN

Tests

Package Sidebar

Install

npm i @cto.af/textdecoder

Weekly Downloads

6,160

Version

0.2.0

License

MIT

Unpacked Size

8.6 kB

Total Files

5

Last publish

Collaborators

  • hildjj