{"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":"http://registry-npm.ywwl.com/text-encoding-utf-8/download/text-encoding-utf-8-1.0.1.tgz","integrity":"sha512-BmiQtYgf2EanrIUqhHPaEehws3SeX4/A3yn6KUGGzG5Qmn6oI/d54O6A2A1RDYkf6eEkH+5qq44AGYhaR8EkhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3OhV2SSeLrhpMe0z6DvDSBPElQYHHKN1AK91GxMHu5AiEA5d4cG1dw2BrBEsrdmk+vHHG6AJxG9D80ro0uEqS0j0E="}],"size":10129,"noattachment":false,"key":"/text-encoding-utf-8/-/text-encoding-utf-8-1.0.1.tgz"},"maintainers":[{"name":"arv","email":"erik.arvidsson@gmail.com"}],"directories":{},"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","publish_time":1447772805722,"_cnpm_publish_time":1447772805722,"dist-tags":{"latest":"1.0.2"}}