Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 5,875,395 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 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.