{"name":"fast-text-encoding","version":"1.0.6","description":"Fast polyfill for TextEncoder and TextDecoder, only supports utf-8","main":"text.min.js","repository":{"type":"git","url":"git+https://github.com/samthor/fast-text-encoding.git"},"author":{"name":"Sam Thorogood","email":"sam.thorogood@gmail.com"},"license":"Apache-2.0","gitHead":"60d0a6cc787da13c2799c11cae48eba037f74548","bugs":{"url":"https://github.com/samthor/fast-text-encoding/issues"},"homepage":"https://github.com/samthor/fast-text-encoding#readme","_id":"fast-text-encoding@1.0.6","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==","shasum":"0aa25f7f638222e3396d72bf936afcf1d42d6867","tarball":"http://registry-npm.ywwl.com/fast-text-encoding/download/fast-text-encoding-1.0.6.tgz","fileCount":5,"unpackedSize":32194,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ8kbJ1tkCh/Z9ugRp2DXfN4gkB9jtFTWqaXcEM8JtGQIgLTtGKbgPcP4TV7Wv9HcLGTQoYtzSyJF+j6yS3uRkuEA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDpOuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkqA/9GDnWHcqOZuipFzuDKMG20ygvAAOvPnbvQthiaw35fcsd7jPw\r\n24kWKBBzTGNTXe427WK0Zcmz0oo/KWKsBo3egDU7ohTrrn56r86eb+momTkJ\r\nnBgDJRq85U9N1KLRmJu+2rwSpDck4JeGHC7QSPD8Ju4A1gSCH18lpIDyMlCS\r\nq9/Gqkc8aJErswcGQHGUGUyMQwBHH8z6ytIf91DjWIHAuOnZGO/HRuJaaZrz\r\nkvzn2Ghr4OkuDvnjn9sfV3e/MtaDsAM88UBqKC28Q+9fVcR42XljgycJxzOD\r\nMcD51i0S2at8kpgxla+CVT1FqNJuu+6bBIMMsnxa7yyBGlXeuQQKaCiGHZi7\r\nKuqtGoV68no4gYAIZvTnW13h0at+Lr8p6KBqejiK/dkrGV8ExCLoCF6M3oO4\r\nrd0glVYWJvHtXz6eIT8jnY7N26ZiPyxWZ6z18pcshz/RV1FPIOt0DxKxISLu\r\n/9CsDaxEemxROpcWg9ZHv6VhX8u32tBJ/hVnFhZfWpCdXnSLQnkKrP0CxceW\r\nxrrGBL9sRKTYQLh5xVD7yFcP2L9leT5y6IAEKmlpc9rWiapF3NHq01nYpQs0\r\nYwFUXGSm9BQJAZDuPTue6xd+ymRkw/WyzF4rlL1qGQOrVc4Z7HVtGgvHLOB4\r\nSLvlvBinU671+83Vr4N1OiFMaB+tYYL8nQA=\r\n=JzPV\r\n-----END PGP SIGNATURE-----\r\n","size":11611,"noattachment":false,"key":"/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz"},"_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"directories":{},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-text-encoding_1.0.6_1661899694198_0.4395811849614186"},"_hasShrinkwrap":false,"readme":"[![Test](https://github.com/samthor/fast-text-encoding/actions/workflows/node.js.yml/badge.svg)](https://github.com/samthor/fast-text-encoding/actions/workflows/node.js.yml)\n\nThis is a fast polyfill for [`TextEncoder`][1] and [`TextDecoder`][2], which let you encode and decode JavaScript strings into UTF-8 bytes.\n\nIt is fast partially as it does not support^ any encodings aside UTF-8 (and note that natively, only `TextDecoder` supports alternative encodings anyway).\nSee [some benchmarks](https://github.com/samthor/fast-text-encoding/tree/master/bench).\n\n^If this polyfill used on Node v5.1 through v11 (when `Text...` was introduced), then this simply wraps `Buffer`, which supports many encodings and is native code.\n\n[1]: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder\n[2]: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder\n\n# Usage\n\nInstall as \"fast-text-encoding\" via your favourite package manager.\n\nYou only need this polyfill if you're supporting older browsers like IE, legacy Edge, ancient Chrome and Firefox, or Node before v11.\n\n## Browser\n\nInclude the minified code inside a `<script>` tag or as an ES6 Module for its side effects.\nIt will create `TextEncoder` and `TextDecoder` if the symbols are missing on `window` or `global.`\n\n```html\n<script src=\"node_modules/fast-text-encoding/text.min.js\"></script>\n<script type=\"module\">\n  import './node_modules/fast-text-encoding/text.min.js';\n  import 'fast-text-encoding';  // or perhaps this\n  // confidently do something with TextEncoder or TextDecoder \\o/\n</script>\n```\n\n⚠️ You'll probably want to depend on \"text.min.js\", as it's compiled to ES5 for older environments.\n\n## Not Including Polyfill\n\nIf your project doesn't need the polyfill, but is included as a transitive dependency, we publish [an empty version](https://www.npmjs.com/package/fast-text-encoding/v/0.0.0-empty) that you could pin NPM or similar's version algorithm to.\nUse \"fast-text-encoding@empty\".\n","publish_time":1661899694394,"_cnpm_publish_time":1661899694394,"dist-tags":{"empty":"0.0.0-empty","latest":"1.0.6"}}