
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Zstd wrapper for Nodejs
$ npm install cppzst --save
import {compress} from 'cppzst';
await compress(input);
import {decompress} from 'cppzst';
await decompress(input)
const compressSync = require('cppzst').compressSync;
try {
var output = compressSync(input);
} catch(err) {
// ...
}
const decompressSync = require('cppzst').decompressSync;
try {
var output = decompressSync(input);
} catch(err) {
// ...
}
const compressStream = require('cppzst').compressStream;
const fs = require('fs');
fs.createReadStream('path/to/input')
.pipe(compressStream())
.pipe(fs.createWriteStream('path/to/output'));
const decompressStream = require('cppzst').decompressStream;
const fs = require('fs');
fs.createReadStream('path/to/input')
.pipe(decompressStream())
.pipe(fs.createWriteStream('path/to/output'));
The compress, compressSync and compressStream methods may accept an optional zstdCompressParams object to define compress level and/or dict.
const zstdCompressParams = {
level: 5, // default 1
dict: new Buffer('hello zstd'), // if dict null, left level only.
dictSize: dict.length // if dict null, left level only.
};
The decompress, decompressSync and decompressStream methods may accept an optional zstdDecompressParams object to define dict.
const zdtdDecompressParams = {
dict: new Buffer('hello zstd'),
dictSize: dict.length
};
$ npm test
MIT
FAQs
Zstd wrapper for Nodejs 14 and above
The npm package cppzst receives a total of 2,868 weekly downloads. As such, cppzst popularity was classified as popular.
We found that cppzst 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.