@cto.af/textdecoder
Quick wrapper that finds TextDecoder or polyfills a bad implementation
Last updated 5 years ago by hildjj .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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.3.0                                ...           latest (9 months ago)

8 Versions

  • 0.3.0                                ...           9 months ago
  • 0.2.4                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 10
Today 8
This Week 8
This Month 9
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE