utf8-encoding:whatwg 编码生活标准 https 的 utf8 编码器解码器

时间:2021-06-24 09:27:07
【文件属性】:
文件名称:utf8-encoding:whatwg 编码生活标准 https 的 utf8 编码器解码器
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-24 09:27:07
TypeScript 同构编码标准实现忽略不支持 UTF-8 关于 编码标准TextEncoder和TextDecoder 。 但该规范包含大量您可能永远不会使用的传统编码支持。 所以只支持编码/解码,使脚本小到浏览器友好 :) 安装 $ npm install utf8-encoding 用法 在节点和浏览器中工作。 同构 !! 没有浏览器。 var encoder = new TextEncoder ( ) ; var decoder = new TextDecoder ( ) ; console . log ( encoder . encode ( "beer!:clinking_beer_mugs:" ) ) ; // Uint8Array[98, 101, 101, 114, 33, 240, 159, 141, 187] console . log ( decoder . decode ( new Uint8Array ( [
【文件预览】:
utf8-encoding-master
----package.json(1KB)
----test()
--------test.js(2KB)
--------index.html(577B)
----utf8-encoding.d.ts(555B)
----.gitignore(82B)
----types()
--------obtain-unicode.d.ts(151B)
--------webidl.d.ts(345B)
----README.md(2KB)
----utf8-encoding.ts(13KB)
----bower.json(615B)

网友评论