{"name":"fast-text-encoding","version":"1.0.0","description":"Fast polyfill for TextEncoder and TextDecoder, only supports utf-8","main":"text.min.js","repository":{"type":"git","url":"git+https://github.com/samthor/fast-text-encoder.git"},"author":{"name":"Sam Thorogood","email":"sam.thorogood@gmail.com"},"license":"Apache-2","gitHead":"40eba03e811a6c3b32c9bf737b38a738a7b9f7b9","bugs":{"url":"https://github.com/samthor/fast-text-encoder/issues"},"homepage":"https://github.com/samthor/fast-text-encoder#readme","_id":"fast-text-encoding@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"integrity":"sha512-R9bHCvweUxxwkDwhjav5vxpFvdPGlVngtqmx4pIZfSUhM/Q4NiIUHB456BAf+Q1Nwu3HEZYONtu+Rya+af4jiQ==","shasum":"3e5ce8293409cfaa7177a71b9ca84e1b1e6f25ef","tarball":"http://registry-npm.ywwl.com/fast-text-encoding/download/fast-text-encoding-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJiR2/z4y/OqCCMrR3I95xSN+YT1BdF9TyAqpDWpT3KAiAGw/lqRJwHHJeV7ym+R6zvGDF5TgKIRuCMG7kSRSsPbQ=="}],"size":8148,"noattachment":false,"key":"/fast-text-encoding/-/fast-text-encoding-1.0.0.tgz"},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-text-encoding-1.0.0.tgz_1504242415471_0.6242613755166531"},"directories":{},"readme":"[![Test](https://github.com/samthor/fast-text-encoding/actions/workflows/node.js.yml/badge.svg)](https://github.com/samthor/fast-text-encoding/actions/workflows/node.js.yml)\n\nThis is a fast polyfill for [`TextEncoder`][1] and [`TextDecoder`][2], which let you encode and decode JavaScript strings into UTF-8 bytes.\n\nIt is fast partially as it does not support^ any encodings aside UTF-8 (and note that natively, only `TextDecoder` supports alternative encodings anyway).\nSee [some benchmarks](https://github.com/samthor/fast-text-encoding/tree/master/bench).\n\n^If this polyfill used on Node v5.1 through v11 (when `Text...` was introduced), then this simply wraps `Buffer`, which supports many encodings and is native code.\n\n[1]: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder\n[2]: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder\n\n# Usage\n\nInstall as \"fast-text-encoding\" via your favourite package manager.\n\nYou only need this polyfill if you're supporting older browsers like IE, legacy Edge, ancient Chrome and Firefox, or Node before v11.\n\n## Browser\n\nInclude the minified code inside a `<script>` tag or as an ES6 Module for its side effects.\nIt will create `TextEncoder` and `TextDecoder` if the symbols are missing on `window` or `global.`\n\n```html\n<script src=\"node_modules/fast-text-encoding/text.min.js\"></script>\n<script type=\"module\">\n  import './node_modules/fast-text-encoding/text.min.js';\n  import 'fast-text-encoding';  // or perhaps this\n  // confidently do something with TextEncoder or TextDecoder \\o/\n</script>\n```\n\n⚠️ You'll probably want to depend on \"text.min.js\", as it's compiled to ES5 for older environments.\n\n## Not Including Polyfill\n\nIf your project doesn't need the polyfill, but is included as a transitive dependency, we publish [an empty version](https://www.npmjs.com/package/fast-text-encoding/v/0.0.0-empty) that you could pin NPM or similar's version algorithm to.\nUse \"fast-text-encoding@empty\".\n","publish_time":1504242415583,"_cnpm_publish_time":1504242415583,"dist-tags":{"empty":"0.0.0-empty","latest":"1.0.6"}}