Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
encode-utf8
Advanced tools
Turn a string into an ArrayBuffer by using the UTF8 encoding.
npm install --save encode-uf8
const encodeUtf8 = require('encode-utf8')
console.log(encodeUtf8('Hello, World!'))
//=> ArrayBuffer { byteLength: 13 }
console.log(encodeUtf8('🐵 🙈 🙉 🙊'))
//=> ArrayBuffer { byteLength: 19 }
encodeUtf8(input: string): ArrayBuffer
Returns an ArrayBuffer with the string represented as UTF8 encoded data.
FAQs
Turn a string into an ArrayBuffer by using the UTF8 encoding.
The npm package encode-utf8 receives a total of 1,672,610 weekly downloads. As such, encode-utf8 popularity was classified as popular.
We found that encode-utf8 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.