mini program file polyfill
npm install miniprogram-text-decoder小程序的TextDecoder polyfill。
> 此库基于FastestSmallestTextEncoderDecoder修改为小程序版本
utfLabel`只支持utf-8(默认值), `options.fatal` 不支持
- decode方法参数`options.stream` 不支持
- encoding属性固定返回`utf-8`
Example
`js
import TextDecoder from 'miniprogram-text-decoder'// 设置为全局对象
// globalThis.TextDecoder = TextDecoder
const TextDecoder = new TextDecoder();
TextDecoder.decode('测试')
``