{"_id":"text-encoding-shim","_rev":"8-3a4808ac2c66f391a11e27748c4448b8","name":"text-encoding-shim","description":"Simple lightweight polyfill for the Text Encoding API, supporting UTF-8 only","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"text-encoding-shim","version":"1.0.0","main":"index.js","author":{"name":"Till Affeldt","email":"till.affeldt@gmail.com"},"description":"Simple lightweight polyfill for the Text Encoding API, supporting UTF-8 only","license":"MIT","keywords":["encoding","decoding","w3c","utf-8"],"files":["bower.json","index.d.ts","index.js","LICENSE","package.json","README.md","typings.json"],"repository":{"type":"git","url":"git+https://gitlab.com/PseudoPsycho/text-encoding-shim.git"},"bugs":{"url":"https://gitlab.com/PseudoPsycho/text-encoding-shim/issues"},"homepage":"https://gitlab.com/PseudoPsycho/text-encoding-shim","gitHead":"7151a40ec7ba2bfd9a6b7bffd37c58076929df38","_id":"text-encoding-shim@1.0.0","scripts":{},"_shasum":"dc2f32d0a6f621e39a96c4a15a8ecdcd3187c0d6","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"pseudopsycho","email":"till.affeldt@gmail.com"},"dist":{"shasum":"dc2f32d0a6f621e39a96c4a15a8ecdcd3187c0d6","tarball":"https://registry.npmjs.org/text-encoding-shim/-/text-encoding-shim-1.0.0.tgz","integrity":"sha512-YHRhnf7F74p3KNvpIIc98iAuaFpgARq2+UYerTsVTyfwisVS3MmFxkvK9pQGgVj73OZQvPNOpXvjMwua1Nt7bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxInKoAVzY2byUxtjum5OVT1+UVvWkX6LOqvy8mwstdwIhAMO4sNmQFXTF9hxp8QWEUfcONeeXXg2RPpVrB3Uvdg5X"}]},"maintainers":[{"name":"pseudopsycho","email":"till.affeldt@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/text-encoding-shim-1.0.0.tgz_1473216062600_0.3469196534715593"},"directories":{}},"1.0.3":{"name":"text-encoding-shim","version":"1.0.3","main":"index.js","author":{"name":"Till Affeldt","email":"affeldt@protonmail.com"},"description":"Simple lightweight polyfill for the Text Encoding API, supporting UTF-8 only","license":"MIT","keywords":["encoding","decoding","w3c","utf-8"],"typings":"index.d.ts","repository":{"type":"git","url":"git+https://gitlab.com/PseudoPsycho/text-encoding-shim.git"},"bugs":{"url":"https://gitlab.com/PseudoPsycho/text-encoding-shim/issues"},"homepage":"https://gitlab.com/PseudoPsycho/text-encoding-shim","_id":"text-encoding-shim@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"pseudopsycho","email":"till.affeldt@gmail.com"},"dist":{"integrity":"sha512-ZB5YnMb2QqjZz/rfenVSb9LrJ9iUkHbWivHu2bn7wkPXA6bwCLc83h/P21DOdteUAT3KN1XQT+T+qYwITKJ3Iw==","shasum":"9b1fdac5c1aa0164d01d78342296c67c266d0cf0","tarball":"https://registry.npmjs.org/text-encoding-shim/-/text-encoding-shim-1.0.3.tgz","fileCount":7,"unpackedSize":8124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccsxOCRA9TVsSAnZWagAA3cgP/j4FTMQoL8pr10DjQzOV\n5wjP4uNfjlPpKNfxdZsP0+e+2L8DuS1N/AvKgiEtpZkkFxXZ2HrUY240wJpY\n6q/LvSN7gBjGCjSGdRCcXhT/x3aowA24MkT2oXGUDlfXoacG/ESCMwha8No6\nMQ4wjzdFUP0fpQxqNSvgttqh6s2WyAOY+XhktHSw4Gfyvl+P99MfsCNh3/vc\nHxmrJoni69INH5ea1717eJ2qIGgf7nu1wgFUOEpAuAeg8kxONFOP/9Zu+20q\n2AZfzSPKaw/LnCplv9faR6abPhSu3S3xU1JZjmBfOZJE8XJQm3DlJpYjVv21\nkOgmTKPS+IHaFpyjAZXG9suLcocxg1YMLBwoJ8Dh6egOe5UVq5OSEFgTHETE\ne/Nq6NUb3PonB6AOuoE+4dxD9p61L5gaHkgWMSUW38e2WzUjGYKVO0y4l+lS\nKHlxFF1ZHqXkMSJ1R0Sq4FfJoi9TQQl9VMQMIKnHGIZn9fopLz3CyYlNONTN\nphpKWQsi2zIxFQql7/Uss2o06UShfANRLh7TnwiWZ4l4Be35JLgAvt90s/FK\nitdUwXA9F8q43y4zSzBgB9Tap0uWAJIikGQDbR5ZqaZTZ+VEklS+h8Yy7XIR\ncAu0qM5F/N/c3EhSYSwOQ9KuMHrfmbZkjJm10CFB27Sd/unug7sLn+Yj17xx\nGig/\r\n=cRQk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuTxuqSNhfnGLhakH3u4/+Ehvzx9DzPUJQ1RhvPKUOZAIgUjI6G0EnrKEdAhp0fIyQUy8dR1IOSAMDHF9phpqRC0s="}]},"maintainers":[{"name":"pseudopsycho","email":"till.affeldt@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-encoding-shim_1.0.3_1551027277518_0.19784491570683183"},"_hasShrinkwrap":false},"1.0.4":{"name":"text-encoding-shim","version":"1.0.4","main":"index.js","author":{"name":"Till Affeldt","email":"affeldt@protonmail.com"},"description":"Simple lightweight polyfill for the Text Encoding API, supporting UTF-8 only","license":"MIT","keywords":["encoding","decoding","w3c","utf-8"],"typings":"index.d.ts","repository":{"type":"git","url":"git+https://gitlab.com/PseudoPsycho/text-encoding-shim.git"},"bugs":{"url":"https://gitlab.com/PseudoPsycho/text-encoding-shim/issues"},"homepage":"https://gitlab.com/PseudoPsycho/text-encoding-shim","gitHead":"c97b4aaeca0091f25f4cb4841dae6d3339f5ff51","_id":"text-encoding-shim@1.0.4","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-aZ8/aAi3QsHDNAjOgt13U0f4mKU4XtKpnrW5e2oZoc6HBjAY7t34oxZLvhwFcpXA3Uo4Y1UdudRW6Oll8XRPRg==","shasum":"621033db9b6a83a1c8f7c35e804023394fa03239","tarball":"https://registry.npmjs.org/text-encoding-shim/-/text-encoding-shim-1.0.4.tgz","fileCount":7,"unpackedSize":8121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNtw3CRA9TVsSAnZWagAAbYgQAICe4ohZ5jhl61hTln3g\nGDbM6Z720Jp84VJn65OYxMgwBGI4piz2gJWaS6/TqrmmiII4YxkYLqhXxzgU\n6K8PqC5GtsUv2bqy2S6QTXG6g2m3X4p6uWHRnGqiRzAKGXg81KMNQMQd3mky\n/rjXQsrUYxFHzarnJ/uE/dnBYHGLopj56ZghgaaU1cKezKSLGmvfEBarUzfK\nSWiacIT0l4ml3ErYB3EI2AC7/8k/5XZqxAUOb15B6nPzKqNj/smcBVL1jCNe\nOhZL3YZPHD4ZHIi57uzI4xJyeD/7yPoEOTqTJOTkw6VY0bSHGzOTCyUJRQAx\n4u84jfRMv07RjVQfmRF+5acty3zPKqbFQHzWtBVAR78XiVLw8L5aqg8tA2wh\nSCZmN6lGRbwqa5+Rv6E3jUoXPo7AHOU6ztFDHQmmjbxljQzBVxTOwoWhnTXl\nYTx1RtwwV4VQj02BwcBl4xA2RjRWFj+pOUDpbnHwK8M5LHMK8+tChj85ClNP\n2V4SX8cak/mYd4d27Y7sz5/j1hID+tt03UqvOY4zuZfg2shz4wh7tlgAcxkd\nsrznQKbgHKMh1XRqXBUVDCPsHA5ZEUQwrk+/vUZY/UUSfiGGsDUpdN52jgrg\nzKJp+D5TwWxy8moSEFHul+j6LTCcjM6f9w4rO23T8Vlnx+2RCeNJrBmN/z4t\nY1nc\r\n=yyXY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzkju37qNp77H87IEVVVcJXUQmITpdAo+JmoRKp0NjiAiBVdT6YkoYDPxyN4bJGQSxQeUof0IkG5ajq6n40UPFlTg=="}]},"maintainers":[{"name":"pseudopsycho","email":"till.affeldt@gmail.com"}],"_npmUser":{"name":"pseudopsycho","email":"affeldt@protonmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-encoding-shim_1.0.4_1563876406997_0.6301414906843401"},"_hasShrinkwrap":false},"1.0.5":{"name":"text-encoding-shim","version":"1.0.5","main":"index.js","author":{"name":"Till Affeldt","email":"affeldt@protonmail.com"},"description":"Simple lightweight polyfill for the Text Encoding API, supporting UTF-8 only","license":"MIT","keywords":["encoding","decoding","w3c","utf-8"],"typings":"index.d.ts","repository":{"type":"git","url":"git+https://gitlab.com/PseudoPsycho/text-encoding-shim.git"},"bugs":{"url":"https://gitlab.com/PseudoPsycho/text-encoding-shim/issues"},"homepage":"https://gitlab.com/PseudoPsycho/text-encoding-shim","gitHead":"33b05934b4e4e6c65fc06260eaa3b2aa2909e7b5","_id":"text-encoding-shim@1.0.5","_nodeVersion":"10.9.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-H7yYW+jRn4yhu60ygZ2f/eMhXPITRt4QSUTKzLm+eCaDsdX8avmgWpmtmHAzesjBVUTAypz9odu5RKUjX5HNYA==","shasum":"dfd9cde8dbbffe0c52be2fc277a6a65c66d23e41","tarball":"https://registry.npmjs.org/text-encoding-shim/-/text-encoding-shim-1.0.5.tgz","fileCount":7,"unpackedSize":8157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/oKaCRA9TVsSAnZWagAAtu0P/0X3lYqkKwz/9dwCxkQT\n/L+Cv082o8p5jyaoYwOe8s2mMaIJ20DE/FRor5wh8SVnTLgUqVB4UCe6WjrY\nwKi4KFpePjdC3aAJD1BibVlZJueMVrHgAvQmpbn0aTkcBRfGiIFqSNjZI3Vp\nJ9DkL9rUWpHCy1LuwiJezyz1X1CpYubeISh1fy3Fp9cgmX4LC/jqDyAjulL/\nhTVM1UWeX4S3RvbLrigqz6ppSuuyv/6UG0tQPvyW3ZBLhUN6rn/vORIPUjN4\nMULDNTQuPNcmbjVi92YE+KivuLmvYORXPE8eVYBKOSSh1c0ZOz1kOeadJXn7\nfiRMI4gVwc0iiVax6m2JopvDxlngZb8EaUCOZ8wcoVYjMErl0adz+U7vBAY+\nBp88F1jud/mjUXJlUeEiWYUDirPFTRRC9VabwzH2i1zgOnHQzHa1tYFh7Wak\ndVpIDP0pskRL27ISpvbbgaQds6gIv1ds4vMQ6xZvl9qQ+8g897mqB5+TzT2j\ncQPUW4ZeFd1hJxejAx29fBew+jG4Tpx02cI00K9Q1FeVlzDOpGNnogcJA0DU\nkw4ChwvlKbFrpGkdDsaRYeIEzmYJyOytrqb5Qs0EBNM57erTHyd6Vt0Bbf2a\nSLyCt31BrDw0OV8P5C0HnpCbaSKOjGaLSGutofqVqoCCJcqpxKW3VKvzJ/Ie\nWa/w\r\n=Iiuj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpHTlmS2nsybEwx87jqfXUoM54+IjNA328pIuh6hHnkgIhAL0e8jqCloeU5PU3JClwXB1RFqooQ1rf0a2NRZsjeubD"}]},"maintainers":[{"name":"pseudopsycho","email":"till.affeldt@gmail.com"}],"_npmUser":{"name":"pseudopsycho","email":"affeldt@protonmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-encoding-shim_1.0.5_1576960665837_0.946361644022196"},"_hasShrinkwrap":false}},"readme":"# Text Encoding Shim\nWhen I was looking for a simple lightweight polyfill that works great with TypeScript I was not happy with the results.\nWhile a couple polyfills exist, they either broke in my special setup and lead to unexpected results or they implemented a bunch\nof features that I did not even want to have. So I wrote my own shim.\n\n## Installation\n### npm\nGet it via *npm* by adding `text-encoding-shim` to your `package.json` or run:\n```shell\nnpm install text-encoding-shim\n```\n\n### Bower\nGet it via *Bower* by adding it to your `bower.json` or run:\n```shell\nbower install --save text-encoding-shim\n```\n\n### HTML script tag\nAltenatively you can simply download this project folder from [Gitlab](https://gitlab.com/PseudoPsycho/text-encoding-shim)\nand add it to your html script tags like so:\n```shell\n<script type=\"text/javascript\" src=\"text-encoding-shim/index.js\"></script>\n```\n\n### TypeScript definitions\nIf you are using TypeScript you do not need to create a definition file. This project already includes one.\nIf you are still using *typings* you may need to run this command to copy the file:\n```shell\ntypings install --save --global npm:text-encoding-shim\n```\n\n## Importing the polyfill\nThis polyfill utilizes the Universal Module Definition (UMD) and be used with either a module loader or standalone.\nIf you import it by adding a script tag you do not have to do anything else. It will automatically be bound to the global scope.\n### CommonJS\n```js\nvar TextEncodingShim = require('text-encoding-shim');\nvar TextEncoder = TextEncodingShim.TextEncoder;\nvar TextDecoder = TextEncodingShim.TextDecoder;\n```\n\n### Asynchronous Module Definition (AMD)\n```js\ndefine([TextEncodingShim], function() {\n\t//...\n});\n```\n\n### ES2015 or TypeScript\n```js\nimport { TextEncoder, TextDecoder } from 'text-encoding-shim';\n```\n\n## Basic Usage\n```js\nvar uint8array = new TextEncoder('utf-8').encode(string);\nvar string = new TextDecoder('utf-8').decode(uint8array);\n```\n\n## Limitations\nIf a native implementation is available it will always be handled preferred to this polyfill.\nJust like native implementations of Mozilla Firefox or Google Chrome, this library only supports UTF-8 encoding.\nThis makes it so fast. If you need additional encodings, check out [this more advanced polyfill](https://github.com/inexorabletash/text-encoding).","maintainers":[{"name":"pseudopsycho","email":"till.affeldt@gmail.com"}],"time":{"modified":"2022-06-27T05:41:20.009Z","created":"2016-09-07T02:41:03.647Z","1.0.0":"2016-09-07T02:41:03.647Z","1.0.3":"2019-02-24T16:54:37.678Z","1.0.4":"2019-07-23T10:06:47.116Z","1.0.5":"2019-12-21T20:37:45.926Z"},"homepage":"https://gitlab.com/PseudoPsycho/text-encoding-shim","keywords":["encoding","decoding","w3c","utf-8"],"repository":{"type":"git","url":"git+https://gitlab.com/PseudoPsycho/text-encoding-shim.git"},"author":{"name":"Till Affeldt","email":"affeldt@protonmail.com"},"bugs":{"url":"https://gitlab.com/PseudoPsycho/text-encoding-shim/issues"},"license":"MIT","readmeFilename":"README.md","users":{"pseudopsycho":true}}