
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
text-decoder
Advanced tools
Streaming text decoder that preserves multibyte Unicode characters.
npm i text-decoder
const TextDecoder = require('text-decoder')
const td = new TextDecoder()
td.push(Buffer.of(0xf0, 0x9f, 0x92)) // returns ''
td.push(Buffer.of(0xa9)) // returns '💩'
const td = new TextDecoder([encoding])
Create a text decoder. encoding
defaults to utf8
.
const string = td.push(data)
Push either a Buffer
or a string
to the text decoder. Returns the decoded string, buffering any partial data.
const string = td.end([data])
End the decoder, optionally pushing a final piece of data. Returns the decoded string.
Apache-2.0
FAQs
Streaming text decoder that preserves multibyte Unicode characters
The npm package text-decoder receives a total of 7,844,573 weekly downloads. As such, text-decoder popularity was classified as popular.
We found that text-decoder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.