1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"_id":"text-decoder","_rev":"8-c099dae3966721ed10910e420229a896","name":"text-decoder","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"text-decoder","version":"1.0.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.0.0","maintainers":[{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"c4e79ba83ec64900fb38544615625518a0807c12","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.0.0.tgz","fileCount":6,"integrity":"sha512-Z4OrKlxHLei5mxwYCzYUI4nc3Laxh6L5DlyByHcbriIp3xWPsYPXWdoJh0oPtrOhNHbia4RltTllAeOE2IGYvQ==","signatures":[{"sig":"MEUCIQDyRYka//4WyqymHTFoMUQfW5fdGmbzUOn/GNSndBisqwIgKD+YiLhE+h1iQxEAF0hngmzlLhjE4KgL3Gj3f4ZW1cQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16039},"main":"index.js","gitHead":"aef37e21501dbd4332918e035f4d943d160b20a7","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"9.7.2","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"20.4.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.0.0_1692101584989_0.7204568813955017","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"text-decoder","version":"1.0.1","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.0.1","maintainers":[{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"02276282748d0e0137cba8c1c6afbded24c20b45","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.0.1.tgz","fileCount":6,"integrity":"sha512-eZZZaQDXNilFGh9u7Ge0ylxRI4iVVzV2n3AcB27S15CI0xvsFfN4KYqQnuOrqvF/mkk8GKb1zfd5Wd4QXCDHxA==","signatures":[{"sig":"MEQCIAKZZFBBQus9R5jjVqHn5KK1lIr4I+V7MhV30DfXRNNjAiATLUv2i/P9FG5LmoYgP7BVmePA1DgUZELtcXb/EMkpJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16184},"main":"index.js","gitHead":"1370bfd82dc3ddc63f6f130d1c6ccc31b36b07f4","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"9.7.2","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"20.4.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.0.1_1692101876316_0.6355354566150824","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"text-decoder","version":"1.1.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.1.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"3379e728fcf4d3893ec1aea35e8c2cac215ef190","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.1.0.tgz","fileCount":6,"integrity":"sha512-TmLJNj6UgX8xcUZo4UDStGQtDiTzF7BzWlzn9g7UWrjkpHr5uJTK1ld16wZ3LXb2vb6jH8qU89dW5whuMdXYdw==","signatures":[{"sig":"MEUCIQDKeXW/OUAM8xY9j08VJje3qZphz0FR1i8vdod2y5g68wIgHHWWPe4/8Gmhpbbb8tgV+tSq7udw+vLezkRWj/PN86E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16717},"main":"index.js","gitHead":"97866f2af37a65b141ff4fa4da4cdc9a66f316f5","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"10.5.0","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"21.7.3","dependencies":{"b4a":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.1.0_1714033673443_0.30746857192834876","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"text-decoder","version":"1.1.1","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.1.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"5df9c224cebac4a7977720b9f083f9efa1aefde8","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.1.1.tgz","fileCount":7,"integrity":"sha512-8zll7REEv4GDD3x4/0pW+ppIxSNs7H1J10IKFZsuOMscumCdM2a+toDGLPA3T+1+fLBql4zbt5z83GEQGGV5VA==","signatures":[{"sig":"MEYCIQDd3QvJ/NLmAFm8kQX9o6ZskL91SO0K1LYRTSg6G9577wIhAJppPxsV1kr8a+y3O+8+HjwXsHNP9GlELX2h5W+s8MW/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17160},"main":"index.js","browser":{"./lib/utf8-decoder.js":"./lib/browser-decoder.js","./lib/pass-through-decoder.js":"./lib/browser-decoder.js"},"gitHead":"be62bc0d500be6a61daca53367f79906ab4986b3","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"10.8.1","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"22.3.0","dependencies":{"b4a":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.1.1_1720426966587_0.06507570662669804","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"text-decoder","version":"1.2.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.2.0","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"85f19d4d5088e0b45cd841bdfaeac458dbffeefc","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.0.tgz","fileCount":7,"integrity":"sha512-n1yg1mOj9DNpk3NeZOx7T6jchTbyJS3i3cucbNN6FcdPriMZx7NsgrGpWWdWZZGxD7ES1XB+3uoqHMgOKaN+fg==","signatures":[{"sig":"MEQCIDMQxLFSe9lJ7eGQ3qR3vVXgcHEwjriaM4WSuXAtsgJmAiBrbdL2YiTdiDa391QY5nWj3NytS2SYF10LDFyytQYN7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17433},"main":"index.js","browser":{"./lib/utf8-decoder.js":"./lib/browser-decoder.js","./lib/pass-through-decoder.js":"./lib/browser-decoder.js"},"gitHead":"593ea993665fc4e18422e85685fd232b1a38579f","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"10.8.3","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"20.17.0","dependencies":{"b4a":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.2.0_1726140825855_0.24369847138853773","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"text-decoder","version":"1.2.1","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.2.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"e173f5121d97bfa3ff8723429ad5ba92e1ead67e","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.1.tgz","fileCount":7,"integrity":"sha512-x9v3H/lTKIJKQQe7RPQkLfKAnc9lUTkWDypIQgTzPJAq+5/GCDHonmshfvlsNSj58yyshbIJJDLmU15qNERrXQ==","signatures":[{"sig":"MEUCIQDsRL3drUf/rJy8Z7fwer5YD6kfwuahD6Gx6Y0NbowOVwIgZHZxfDS9DqZcoIxK8RKrNS0C362MwA2mwJrmnKH/frs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17316},"main":"index.js","browser":{"./lib/utf8-decoder.js":"./lib/browser-decoder.js","./lib/pass-through-decoder.js":"./lib/browser-decoder.js"},"gitHead":"f0372643d12e059481b0ee70e4794beb6734456e","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"10.8.3","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"22.9.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.2.1_1729244445505_0.052335614547837306","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"text-decoder","version":"1.2.2","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.2.2","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/text-decoder#readme","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"dist":{"shasum":"63dd2401c43895cecb292e2407db184b50ad60ac","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.2.tgz","fileCount":7,"integrity":"sha512-/MDslo7ZyWTA2vnk1j7XoDVfXsGk3tp+zFEJHJGm0UjIlQifonVFwlVbQDFh8KJzTBnT8ie115TYqir6bclddA==","signatures":[{"sig":"MEQCIALi62AS7IPtlKjNBgPUuIGQlx1XfPzN6Cd17cL7PRxTAiABtuu0Jhla0wlTrJbEh2taDIlqjQG61ONULRiBdURoJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17433},"main":"index.js","browser":{"./lib/utf8-decoder.js":"./lib/browser-decoder.js","./lib/pass-through-decoder.js":"./lib/browser-decoder.js"},"gitHead":"edeed8439c04dd91dff314487049ab1aa1e1668f","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"10.9.0","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"23.2.0","dependencies":{"b4a":"^1.6.4"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.2.2_1733484232140_0.4695188321160044","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"text-decoder","version":"1.2.3","description":"Streaming text decoder that preserves multibyte Unicode characters","main":"index.js","browser":{"./lib/pass-through-decoder.js":"./lib/browser-decoder.js","./lib/utf8-decoder.js":"./lib/browser-decoder.js"},"react-native":{"./lib/pass-through-decoder.js":"./lib/pass-through-decoder.js","./lib/utf8-decoder.js":"./lib/utf8-decoder.js"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/holepunchto/text-decoder.git"},"author":{"name":"Holepunch"},"license":"Apache-2.0","bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"homepage":"https://github.com/holepunchto/text-decoder#readme","dependencies":{"b4a":"^1.6.4"},"devDependencies":{"brittle":"^3.3.2","standard":"^17.0.0"},"_id":"text-decoder@1.2.3","gitHead":"f8f535a663210b8bd7a0a43246fdd5d122dfd168","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==","shasum":"b19da364d981b2326d5f43099c310cc80d770c65","tarball":"https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz","fileCount":7,"unpackedSize":17581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtfEYqZ7OqXnI2saES2/j3+LwV05k42IkHmAopXqw9bAiEAroH41uSs6qjNg0A95522N6J1gdKMT5NaOI6l5C3xujc="}]},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/text-decoder_1.2.3_1734160845377_0.49688375153232966"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-15T12:13:04.988Z","modified":"2024-12-14T07:20:45.720Z","1.0.0":"2023-08-15T12:13:05.144Z","1.0.1":"2023-08-15T12:17:56.521Z","1.1.0":"2024-04-25T08:27:53.611Z","1.1.1":"2024-07-08T08:22:46.734Z","1.2.0":"2024-09-12T11:33:46.010Z","1.2.1":"2024-10-18T09:40:45.701Z","1.2.2":"2024-12-06T11:23:52.323Z","1.2.3":"2024-12-14T07:20:45.554Z"},"bugs":{"url":"https://github.com/holepunchto/text-decoder/issues"},"author":{"name":"Holepunch"},"license":"Apache-2.0","homepage":"https://github.com/holepunchto/text-decoder#readme","repository":{"type":"git","url":"git+https://github.com/holepunchto/text-decoder.git"},"description":"Streaming text decoder that preserves multibyte Unicode characters","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"readme":"# text-decoder\n\nStreaming text decoder that preserves multibyte Unicode characters.\n\n```\nnpm i text-decoder\n```\n\n## Usage\n\n``` js\nconst TextDecoder = require('text-decoder')\n\nconst td = new TextDecoder()\n\ntd.push(Buffer.of(0xf0, 0x9f, 0x92)) // returns ''\ntd.push(Buffer.of(0xa9)) // returns '💩'\n```\n\n## API\n\n#### `const td = new TextDecoder([encoding])`\n\nCreate a text decoder. `encoding` defaults to `utf8`.\n\n#### `const string = td.push(data)`\n\nPush either a `Buffer` or a `string` to the text decoder. Returns the decoded string, buffering any partial data.\n\n#### `const string = td.end([data])`\n\nEnd the decoder, optionally pushing a final piece of data. Returns the decoded string.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"} |