Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
dat-encoding
Advanced tools
Dat's way of encoding and decoding dat links.
var encoding = require('dat-encoding')
var link = '6161616161616161616161616161616161616161616161616161616161616161'
var buf = encoding.decode(link)
console.log('%s -> %s', link, buf)
console.log('%s -> %s', buf, encoding.encode(buf))
Encode buf
into a hex string. Throws if buf
isn't 32 bytes of length.
If buf
is already a string, checks if it's valid and returns it.
Decode str
into its binary representation. Also supports dat://
and dat.com/
links. Throws if the raw link isn't 64 bytes of base64.
If str
is already a buffer, checks if it's valid and returns it.
MIT
FAQs
Encode and decode Dat links
The npm package dat-encoding receives a total of 103 weekly downloads. As such, dat-encoding popularity was classified as not popular.
We found that dat-encoding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.