{"name":"fast-text-encoding","version":"1.0.4","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","scripts":{"compile":"./compile.sh","test":"node --test ./test.mjs"},"devDependencies":{"google-closure-compiler":"^20220601.0.0"},"gitHead":"adb4ba869d76da8d3ec0e0f711047584bdfd112d","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.4","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-x6lDDm/tBAzX9kmsPcZsNbvDs3Zey3+scsxaZElS8xWLgUMAg/oFLeewfUz0mu1CblHhhsu15jGkraldkFh8KQ==","shasum":"bf1898ad800282a4e53c0ea9690704dd26e4298e","tarball":"http://registry-npm.ywwl.com/fast-text-encoding/download/fast-text-encoding-1.0.4.tgz","fileCount":7,"unpackedSize":33768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2UIyZ8CJHO0JE52+sLjivYDVHlmV+nXPqOwzQ4bqueQIhAOIId8aB0+FpVI4HtLNzLS/QlhI4/TXPPiXdFxmaNsIn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisQcYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMCRAAh5YNWnUbr9o+R+T7Khv3Qmje1nGVgOpBGhDPFbJ/RKNDFEb9\r\ndXcy620gOsQ141KbXkMseRCD2gjMY+JkauW7hpTsrDyj3BWkLWygUWFXIqwV\r\n4YDGZwUsE/BG4UhPwYtb2I6danGtBfeFwXloJ+EFUQEHXHSl22VHGW/VCc4/\r\nPibnTKQtEYBlAUnIb25mAfxPe3wBLZZoOlszzKzC1caXlhICRFUW8SEItUfB\r\naq9hshmspfrS6IitlwnH/y7ZbFSt82fDScHCWbEeJF3M4nFIyu+TM25nBMTf\r\nzKERwGFmFQ0A4wieO/kAc9Lso7vmUzN5f3VfH1MgRclpWogcknzhEDeqfZdz\r\nJXm1mqUdfsmEfBmPyosJC+HME3+TS+jl5VzZ546VOVTQQES7ZJ0yHjzBVzDj\r\nsWcv4xKqECk0K1W2ZjS4vzDhDSFPqqDh4TY5ry6fjxWEDulmx6l0ot8xMLmV\r\n7efpIbmf89hJMtN9aEqRl2HeOfDjnQsirT5tiHoATavOf9AfTJ+lYnQLdeFk\r\nlCqryJ6RifVvsNvCzj/wJcuqn7PlO002YdYkBVlwMmgQcifX5sAejsYYeDt/\r\nmupPYfvAy0ByOthg4dQfrbVwBmVd+Z1C9gJcHJZkFu81/HIZGfXddDg0D6AH\r\nGIxQBIVGR+Du75bfE58/s/Tr2lyYRGSE43s=\r\n=EBsE\r\n-----END PGP SIGNATURE-----\r\n","size":12123,"noattachment":false,"key":"/fast-text-encoding/-/fast-text-encoding-1.0.4.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.4_1655768856615_0.2222405834193133"},"_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":1655768856900,"_cnpm_publish_time":1655768856900,"dist-tags":{"empty":"0.0.0-empty","latest":"1.0.6"}}