{"name":"text-decoder","version":"1.2.5","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"text-decoder@1.2.5","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":"128e589d1baa43ddcc59eda35b46fd000fa79c22","tarball":"http://registry-npm.ywwl.com/text-decoder/download/text-decoder-1.2.5.tgz","fileCount":7,"integrity":"sha512-ymKEOrjEhNE0+Gehpn2Dw59Vp2fNG0DQvCRAJpCjVqB1Pkj1AMBzDpow4H9kSa6XqO/wZrb5TLxEigx+nEaiBA==","signatures":[{"sig":"MEUCIQCsK7Dae23ejsqyJHRI1LO3tfB1nk2gCOUF8iHMYkZHHAIgX+N8U/cNOG2/Y0J6jXdSxH3iEaL7CybxE8mNim4res4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17884,"size":6097,"noattachment":false,"key":"/text-decoder/-/text-decoder-1.2.5.tgz"},"main":"index.js","browser":{"./lib/utf8-decoder.js":"./lib/browser-decoder.js","./lib/pass-through-decoder.js":"./lib/browser-decoder.js"},"gitHead":"37f4e61a0ea51632d0ff3448060263e48d1243aa","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.5_1770997984217_0.12529734589264652","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":1770997984435,"_cnpm_publish_time":1770997984435,"dist-tags":{"latest":"1.2.7"}}