@cto.af/textdecoder
Quick wrapper that finds TextDecoder or polyfills a bad implementation
Last updated 4 years ago by hildjj .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cto.af/textdecoder 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (4 years ago)

3 Versions

  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |