{"_id":"text-encoding-utf-8","_rev":"6-8039d3c66afde23d9686146d0d6ad2db","name":"text-encoding-utf-8","description":"UTF-8 only polyfill for the Encoding Living Standard's API.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"text-encoding-utf-8","author":{"name":"Erik Arvidsson","email":"erik.arvidsson@gmail.com"},"contributors":[{"name":"Rick Eyre","email":"rick.eyre@outlook.com"},{"name":"Joshua Bell","email":"inexorabletash@gmail.com"}],"version":"1.0.0","description":"UTF-8 only polyfill for the Encoding Living Standard's API.","main":"lib/encoding.cjs.js","jsnext:main":"src/encoding.js","files":["src","dist"],"repository":{"type":"git","url":"git+https://github.com/arv/text-encoding-utf-8.git"},"keywords":["encoding","decoding","living standard"],"bugs":{"url":"https://github.com/arv/text-encoding-utf-8/issues"},"homepage":"https://github.com/arv/text-encoding-utf-8","scripts":{"prepublish":"rollup -f iife -o lib/encoding.js -- src/polyfill.js && rollup -f cjs -o lib/encoding.cjs.js -- src/encoding.js"},"devDependencies":{"rollup":"^0.21.0"},"gitHead":"64cc43835da1d4e23898959e8eb103c516d1c407","_id":"text-encoding-utf-8@1.0.0","_shasum":"5d0cbf858b2dc9f7baa51858dab52b06a8d1d34c","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"arv","email":"erik.arvidsson@gmail.com"},"dist":{"shasum":"5d0cbf858b2dc9f7baa51858dab52b06a8d1d34c","tarball":"https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.0.tgz","integrity":"sha512-9bdLvM+AJ2m2iqU+Oz4qKqnIn71iG8jKrPSvb5YmLdoEnkAeMKxKMmjtwjfB9SYSV/RMQzTKe5YZFh3GgVL6EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnZ7cDcsOruGR/XzCjYtaEwf60uV4wIsIXvlugUxfxFAIhANHobtlqld7xAaVtizHubeQJ3tebKfc4Eb0iFwpwRmyf"}]},"maintainers":[{"name":"arv","email":"erik.arvidsson@gmail.com"}]},"1.0.1":{"name":"text-encoding-utf-8","author":{"name":"Erik Arvidsson","email":"erik.arvidsson@gmail.com"},"contributors":[{"name":"Rick Eyre","email":"rick.eyre@outlook.com"},{"name":"Joshua Bell","email":"inexorabletash@gmail.com"}],"version":"1.0.1","description":"UTF-8 only polyfill for the Encoding Living Standard's API.","main":"lib/encoding.cjs.js","jsnext:main":"src/encoding.js","files":["src","lib"],"repository":{"type":"git","url":"git+https://github.com/arv/text-encoding-utf-8.git"},"keywords":["encoding","decoding","living standard"],"bugs":{"url":"https://github.com/arv/text-encoding-utf-8/issues"},"homepage":"https://github.com/arv/text-encoding-utf-8","scripts":{"prepublish":"rollup -f iife -o lib/encoding.js -- src/polyfill.js && rollup -f cjs -o lib/encoding.cjs.js -- src/encoding.js"},"devDependencies":{"rollup":"^0.21.0"},"gitHead":"c435518cf6a75d14475f4a4b211ac2a8109de477","_id":"text-encoding-utf-8@1.0.1","_shasum":"51ea6c7a7eb2fb4f67467b763735661f5603492d","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"arv","email":"erik.arvidsson@gmail.com"},"dist":{"shasum":"51ea6c7a7eb2fb4f67467b763735661f5603492d","tarball":"https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.1.tgz","integrity":"sha512-BmiQtYgf2EanrIUqhHPaEehws3SeX4/A3yn6KUGGzG5Qmn6oI/d54O6A2A1RDYkf6eEkH+5qq44AGYhaR8EkhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3OhV2SSeLrhpMe0z6DvDSBPElQYHHKN1AK91GxMHu5AiEA5d4cG1dw2BrBEsrdmk+vHHG6AJxG9D80ro0uEqS0j0E="}]},"maintainers":[{"name":"arv","email":"erik.arvidsson@gmail.com"}]},"1.0.2":{"name":"text-encoding-utf-8","author":{"name":"Erik Arvidsson","email":"erik.arvidsson@gmail.com"},"contributors":[{"name":"Rick Eyre","email":"rick.eyre@outlook.com"},{"name":"Joshua Bell","email":"inexorabletash@gmail.com"}],"version":"1.0.2","description":"UTF-8 only polyfill for the Encoding Living Standard's API.","main":"lib/encoding.lib","jsnext:main":"src/encoding.js","files":["src","lib"],"repository":{"type":"git","url":"git+https://github.com/arv/text-encoding-utf-8.git"},"keywords":["encoding","decoding","living standard"],"bugs":{"url":"https://github.com/arv/text-encoding-utf-8/issues"},"homepage":"https://github.com/arv/text-encoding-utf-8","scripts":{"prepublish":"rollup -f iife -o lib/encoding.js -- src/polyfill.js && rollup -f cjs -o lib/encoding.lib.js -- src/encoding.js && cp src/encoding.js lib/encoding.lib.mjs"},"devDependencies":{"rollup":"^0.21.0"},"gitHead":"082bf9d5c2ffbd73e5576089b181c6eddc641771","_id":"text-encoding-utf-8@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"arv","email":"erik.arvidsson@gmail.com"},"dist":{"integrity":"sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==","shasum":"585b62197b0ae437e3c7b5d0af27ac1021e10d13","tarball":"https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdvsYwG8UFwP8VKzPBPrE1kJL5+CFCdi3S6Xx7nvp2rAiEAqVvStTbZJg9F707YRlEexeO1Kovfbq5cAz7I0M6rjtQ="}]},"maintainers":[{"name":"arv","email":"erik.arvidsson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-encoding-utf-8-1.0.2.tgz_1511199597515_0.3256602131295949"}}},"readme":"text-encoding-utf-8\n==============\n\nThis is a **partial** polyfill for the [Encoding Living Standard](https://encoding.spec.whatwg.org/)\nAPI for the Web, allowing encoding and decoding of textual data to and from Typed Array\nbuffers for binary data in JavaScript.\n\nThis is fork of [text-encoding](https://github.com/inexorabletash/text-encoding)\nthat **only** support **UTF-8**.\n\nBasic examples and tests are included.\n\n### Install ###\n\nThere are a few ways you can get the `text-encoding-utf-8` library.\n\n#### Node ####\n\n`text-encoding-utf-8` is on `npm`. Simply run:\n\n```js\nnpm install text-encoding-utf-8\n```\n\nOr add it to your `package.json` dependencies.\n\n### HTML Page Usage ###\n\n```html\n  <script src=\"encoding.js\"></script>\n```\n\n### API Overview ###\n\nBasic Usage\n\n```js\n  var uint8array = TextEncoder(encoding).encode(string);\n  var string = TextDecoder(encoding).decode(uint8array);\n```\n\nStreaming Decode\n\n```js\n  var string = \"\", decoder = TextDecoder(encoding), buffer;\n  while (buffer = next_chunk()) {\n    string += decoder.decode(buffer, {stream:true});\n  }\n  string += decoder.decode(); // finish the stream\n```\n\n### Encodings ###\n\nOnly `utf-8` and `UTF-8` are supported.\n\n### Non-Standard Behavior ###\n\nOnly `utf-8` and `UTF-8` are supported.\n\n### Motivation\n\nBinary size matters, especially on a mobile phone. Safari on iOS does not\nsupport TextDecoder or TextEncoder.\n","maintainers":[{"name":"arv","email":"erik.arvidsson@gmail.com"}],"time":{"modified":"2022-06-27T05:41:21.024Z","created":"2015-11-17T00:28:48.711Z","1.0.0":"2015-11-17T00:28:48.711Z","1.0.1":"2015-11-17T15:06:45.722Z","1.0.2":"2017-11-20T17:39:57.604Z"},"homepage":"https://github.com/arv/text-encoding-utf-8","keywords":["encoding","decoding","living standard"],"repository":{"type":"git","url":"git+https://github.com/arv/text-encoding-utf-8.git"},"contributors":[{"name":"Rick Eyre","email":"rick.eyre@outlook.com"},{"name":"Joshua Bell","email":"inexorabletash@gmail.com"}],"author":{"name":"Erik Arvidsson","email":"erik.arvidsson@gmail.com"},"bugs":{"url":"https://github.com/arv/text-encoding-utf-8/issues"},"readmeFilename":"README.md"}