{"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":"http://registry-npm.ywwl.com/text-encoding-utf-8/download/text-encoding-utf-8-1.0.0.tgz","integrity":"sha512-9bdLvM+AJ2m2iqU+Oz4qKqnIn71iG8jKrPSvb5YmLdoEnkAeMKxKMmjtwjfB9SYSV/RMQzTKe5YZFh3GgVL6EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnZ7cDcsOruGR/XzCjYtaEwf60uV4wIsIXvlugUxfxFAIhANHobtlqld7xAaVtizHubeQJ3tebKfc4Eb0iFwpwRmyf"}],"size":6766,"noattachment":false,"key":"/text-encoding-utf-8/-/text-encoding-utf-8-1.0.0.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":1447720128711,"_cnpm_publish_time":1447720128711,"dist-tags":{"latest":"1.0.2"}}