{"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":"http://registry-npm.ywwl.com/text-encoding-utf-8/download/text-encoding-utf-8-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdvsYwG8UFwP8VKzPBPrE1kJL5+CFCdi3S6Xx7nvp2rAiEAqVvStTbZJg9F707YRlEexeO1Kovfbq5cAz7I0M6rjtQ="}],"size":9088,"noattachment":false,"key":"/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz"},"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"},"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":1511199597604,"_cnpm_publish_time":1511199597604,"dist-tags":{"latest":"1.0.2"}}