Gathering detailed insights and metrics for minizlib
Gathering detailed insights and metrics for minizlib
Gathering detailed insights and metrics for minizlib
Gathering detailed insights and metrics for minizlib
A smaller, faster, zlib stream built on http://npm.im/minipass and Node.js's zlib binding.
npm install minizlib
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (65.71%)
TypeScript (34.29%)
Total Downloads
5,436,276,227
Last Day
1,924,156
Last Week
34,018,951
Last Month
145,343,296
Last Year
1,373,973,041
NOASSERTION License
80 Stars
90 Commits
11 Forks
2 Watchers
3 Branches
4 Contributors
Updated on Jun 19, 2025
Minified
Minified + Gzipped
Latest Version
3.0.2
Package Id
minizlib@3.0.2
Unpacked Size
108.39 kB
Size
17.56 kB
File Count
21
NPM Version
11.2.0
Node Version
22.14.0
Published on
Mar 31, 2025
Cumulative downloads
Total Downloads
Last Day
-8.2%
1,924,156
Compared to previous day
Last Week
-7%
34,018,951
Compared to previous week
Last Month
7.1%
145,343,296
Compared to previous month
Last Year
27.9%
1,373,973,041
Compared to previous year
1
4
A fast zlib stream built on minipass and Node.js's zlib binding.
This module was created to serve the needs of node-tar and minipass-fetch.
Brotli is supported in versions of node with a Brotli binding.
'node:zlib'
?First, there are no convenience methods to compress or decompress a
buffer. If you want those, use the built-in zlib
module. This is
only streams. That being said, Minipass streams to make it fairly easy to
use as one-liners: new zlib.Deflate().end(data).read()
will return the
deflate compressed result.
This module compresses and decompresses the data as fast as you feed it in. It is synchronous, and runs on the main process thread. Zlib and Brotli operations can be high CPU, but they're very fast, and doing it this way means much less bookkeeping and artificial deferral.
Node's built in zlib streams are built on top of stream.Transform
.
They do the maximally safe thing with respect to consistent
asynchrony, buffering, and backpressure.
See Minipass for more on the differences between Node.js core streams and Minipass streams, and the convenience methods provided by that class.
1import { BrotliDecompress } from 'minizlib' 2// or: const BrotliDecompress = require('minizlib') 3 4const input = sourceOfCompressedData() 5const decode = new BrotliDecompress() 6const output = whereToWriteTheDecodedData() 7input.pipe(decode).pipe(output)
To create reproducible gzip compressed files across different operating
systems, set portable: true
in the options. This causes minizlib to set
the OS
indicator in byte 9 of the extended gzip header to 0xFF
for
'unknown'.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More