{"_id":"text-encoding-utf-8","_rev":"410962","name":"text-encoding-utf-8","description":"UTF-8 only polyfill for the Encoding Living Standard's API.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"arv","email":"arv@chromium.org"}],"time":{"modified":"2021-08-04T05:08:22.000Z","created":"2015-11-17T00:28:48.711Z","1.0.2":"2017-11-20T17:39:57.604Z","1.0.1":"2015-11-17T15:06:45.722Z","1.0.0":"2015-11-17T00:28:48.711Z"},"users":{},"author":{"name":"Erik Arvidsson","email":"erik.arvidsson@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/arv/text-encoding-utf-8.git"},"versions":{"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":{"shasum":"585b62197b0ae437e3c7b5d0af27ac1021e10d13","size":9088,"noattachment":false,"key":"/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/text-encoding-utf-8/download/text-encoding-utf-8-1.0.2.tgz"},"maintainers":[{"name":"arv","email":"arv@chromium.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-encoding-utf-8-1.0.2.tgz_1511199597515_0.3256602131295949"},"directories":{},"publish_time":1511199597604,"_hasShrinkwrap":false,"_cnpm_publish_time":1511199597604},"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","size":10129,"noattachment":false,"key":"/text-encoding-utf-8/-/text-encoding-utf-8-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/text-encoding-utf-8/download/text-encoding-utf-8-1.0.1.tgz"},"maintainers":[{"name":"arv","email":"arv@chromium.org"}],"directories":{},"publish_time":1447772805722,"_cnpm_publish_time":1447772805722,"_hasShrinkwrap":false},"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","size":6766,"noattachment":false,"key":"/text-encoding-utf-8/-/text-encoding-utf-8-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/text-encoding-utf-8/download/text-encoding-utf-8-1.0.0.tgz"},"maintainers":[{"name":"arv","email":"arv@chromium.org"}],"directories":{},"publish_time":1447720128711,"_cnpm_publish_time":1447720128711,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/arv/text-encoding-utf-8","bugs":{"url":"https://github.com/arv/text-encoding-utf-8/issues"}}