Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
uint8-encoding
Advanced tools
Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.
Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.
It's just a simple wrapper around TextEncoder and TextDecoder, but it provides a cleaner API and it handles nuances like the BOM character for you.
npm install --save uint8-encoding
import U8 from 'uint8-encoding';
const raw = 'Hello 😃';
const encoded = U8.encode ( raw );
console.log ( encoded ); // => Uint8Array(10) [72, 101, 108, 108, 111, 32, 240, 159, 152, 131]
const decoded = U8.decode ( encoded );
console.log ( decoded ); // => 'Hello 😃'
MIT © Fabio Spampinato
FAQs
Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.
The npm package uint8-encoding receives a total of 753 weekly downloads. As such, uint8-encoding popularity was classified as not popular.
We found that uint8-encoding 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.