{"_id":"@ably/text-decoder","_rev":"3-9318e70dc4768e7b8dcf8a5428fb8586","name":"@ably/text-decoder","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ably/text-decoder","version":"0.0.1","keywords":["text-decoder","utf-8","polyfill","react-native"],"author":{"name":"Ably"},"license":"MIT","_id":"@ably/text-decoder@0.0.1","maintainers":[{"name":"mschristensen","email":"mike@christensen.codes"},{"name":"ably-realtime","email":"account.owners@ably.com"},{"name":"simonw_ably","email":"simon.woolf@ably.com"},{"name":"owenpearson","email":"owen.pearson@ably.com"},{"name":"hingasellu","email":"hingasellu@gmail.com"},{"name":"ttypic","email":"khokhlov.e.n@gmail.com"},{"name":"andrii.bulat.ably","email":"andrii.bulat@ably.com"},{"name":"andytwf","email":"andyford993@gmail.com"},{"name":"splind06","email":"steven.lindsay@ably.com"},{"name":"zariel-ably","email":"chris.bannister@ably.com"},{"name":"mattheworiordan","email":"matthew.oriordan@gmail.com"},{"name":"vlad.velici.ably","email":"vlad.velici@ably.com"}],"homepage":"https://github.com/ably-forks/text-decoder#readme","bugs":{"url":"https://github.com/ably-forks/text-decoder/issues"},"dist":{"shasum":"578dd3e3fb907c1cc112b0291f055a1918301139","tarball":"https://registry.npmjs.org/@ably/text-decoder/-/text-decoder-0.0.1.tgz","fileCount":8,"integrity":"sha512-iziovZLXDoUgAc5C10PGQb/apkAiJNjBOpmNXABs5AwBCM4cQXiS1ehEaDZ+8/3CMCcntamRR0vZV+ffrAPC1w==","signatures":[{"sig":"MEYCIQCiR9PV7AWe4DE7VXDlYJCQZ2Ly/TPUsOAqNMeoMhkKCgIhAP0excTvnuT77eyi16uns+xXBMTOO7kTGm9ZvXEN1Wcd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44131},"main":"./build/index.cjs","type":"module","types":"./build/index.d.ts","module":"./build/index.js","exports":{".":{"import":{"types":"./build/index.d.ts","default":"./build/index.js"},"require":{"types":"./build/index.d.cts","default":"./build/index.cjs"}}},"gitHead":"f4574b07d1b62b829464ce4878bc7b9d400a40bc","scripts":{"test":"vitest run","build":"npm run clean && npm run build:esm && npm run build:cjs && npm run build:types","clean":"rm -rf build","build:cjs":"tsc --project tsconfig.cjs.json && mv build/cjs/index.js build/index.cjs && rm -rf build/cjs","build:esm":"tsc --project tsconfig.esm.json","test:watch":"vitest","build:types":"tsc --project tsconfig.types.json && cp build/types/index.d.ts build/index.d.ts && cp build/types/index.d.ts build/index.d.cts && rm -rf build/types","prepublishOnly":"npm run build"},"_npmUser":{"name":"ttypic","email":"khokhlov.e.n@gmail.com"},"repository":{"url":"git+https://github.com/ably-forks/text-decoder.git","type":"git"},"_npmVersion":"10.2.3","description":"A light-weight TextDecoder polyfill for React Native Hermes that only supports utf-8","directories":{},"sideEffects":false,"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.2.0","typescript":"^5.3.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/text-decoder_0.0.1_1767793010331_0.9798179034004602","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-01-07T13:36:50.158Z","modified":"2026-03-18T18:54:44.462Z","0.0.1":"2026-01-07T13:36:50.489Z"},"bugs":{"url":"https://github.com/ably-forks/text-decoder/issues"},"author":{"name":"Ably"},"license":"MIT","homepage":"https://github.com/ably-forks/text-decoder#readme","keywords":["text-decoder","utf-8","polyfill","react-native"],"repository":{"url":"git+https://github.com/ably-forks/text-decoder.git","type":"git"},"description":"A light-weight TextDecoder polyfill for React Native Hermes that only supports utf-8","maintainers":[{"email":"mike@christensen.codes","name":"mschristensen"},{"email":"account.owners@ably.com","name":"ably-realtime"},{"email":"simon.woolf@ably.com","name":"simonw_ably"},{"email":"owen.pearson@ably.com","name":"owenpearson"},{"email":"khokhlov.e.n@gmail.com","name":"ttypic"},{"email":"lawrence.forooghian@ably.com","name":"lawrence.forooghian.ably"},{"email":"andrii.bulat@ably.com","name":"andrii.bulat.ably"},{"email":"andyford993@gmail.com","name":"andytwf"},{"email":"steven.lindsay@ably.com","name":"splind06"},{"email":"chris.bannister@ably.com","name":"zariel-ably"},{"email":"matthew.oriordan@gmail.com","name":"mattheworiordan"},{"email":"vlad.velici@ably.com","name":"vlad.velici.ably"}],"readme":"# @ably/text-decoder\n\nA lightweight TextDecoder polyfill for React Native Hermes that only supports UTF-8.\n\nThe implementation is a fork of [`text-encoding`](https://github.com/EvanBacon/text-decoder) without dependencies, built as a standalone library with both CommonJS and ES module support.\n\n## Installation\n\n```bash\nnpm install @ably/text-decoder\n```\n\n## Usage\n\n```javascript\n// ESM\nimport { TextDecoder } from '@ably/text-decoder';\n\n// CommonJS\nconst { TextDecoder } = require('@ably/text-decoder');\n\n// Use the polyfill\nconst decoder = new TextDecoder('utf-8');\nconst text = decoder.decode(new Uint8Array([72, 101, 108, 108, 111])); // \"Hello\"\n```\n\n## Features\n\n- ✅ Lightweight UTF-8 TextDecoder implementation\n- ✅ Supports both CommonJS and ES modules\n- ✅ Zero dependencies\n- ✅ TypeScript type definitions included\n- ✅ Tested with Vitest\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Build the library\nnpm run build\n```\n","readmeFilename":"README.md"}