{"name":"text-decoder","version":"1.2.4","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.2.4","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":"ba17505b2efa3b44982c18be5ab58b1f52de053d","tarball":"http://registry-npm.ywwl.com/text-decoder/download/text-decoder-1.2.4.tgz","fileCount":7,"integrity":"sha512-mzlffA3tBNhziEHPK5L5InZg1d/ElNIpJhnhbDRNUtem/edZcJ5zg5FgwKKKOyklxk+6Jt+TrSu83musmvrDlg==","signatures":[{"sig":"MEUCIGQ2hAg9CiOsDM4lPJzBfZ7kFqazdruCL0lAevjFCICqAiEAzUVkFyoN6glm+jvGuKv0p8IEOuA1jEyrMtB6Y5m1BfE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17854,"size":6098,"noattachment":false,"key":"/text-decoder/-/text-decoder-1.2.4.tgz"},"main":"index.js","browser":{"./lib/utf8-decoder.js":"./lib/browser-decoder.js","./lib/pass-through-decoder.js":"./lib/browser-decoder.js"},"gitHead":"e742731bd11d5a68b7dfbd00d695274208b40d1b","scripts":{"lint":"prettier --check . && lunte","test":"npm run test:node && npm run test:bare","format":"prettier --write .","test:bare":"brittle-bare test.js","test:node":"brittle-node test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/text-decoder.git","type":"git"},"_npmVersion":"11.6.4","description":"Streaming text decoder that preserves multibyte Unicode characters","directories":{},"_nodeVersion":"24.10.0","dependencies":{"b4a":"^1.6.4"},"react-native":{"./lib/utf8-decoder.js":"./lib/utf8-decoder.js","./lib/pass-through-decoder.js":"./lib/pass-through-decoder.js"},"_hasShrinkwrap":false,"devDependencies":{"lunte":"^1.3.0","brittle":"^3.3.2","prettier":"^3.6.2","prettier-config-holepunch":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_1.2.4_1770973172266_0.21879344825827274","host":"s3://npm-registry-packages-npm-production"},"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","publish_time":1770973172407,"_cnpm_publish_time":1770973172407,"dist-tags":{"latest":"1.2.7"}}