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
@types/minizlib
TypeScript definitions for minizlib
minipass
minimal implementation of a PassThrough stream
lock-diff
a diff for package-lock.json files
@wemnyelezxnpm/qui-modi-excepturi
A _very_ minimal implementation of a [PassThrough stream](https://nodejs.org/api/stream.html#stream_class_stream_passthrough)
A smaller, faster, zlib stream built on http://npm.im/minipass and Node.js's zlib binding.
npm install minizlib
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
73 Stars
82 Commits
9 Forks
3 Watching
6 Branches
2 Contributors
Updated on 25 Sept 2024
Minified
Minified + Gzipped
JavaScript (71.63%)
TypeScript (28.37%)
Cumulative downloads
Total Downloads
Last day
2.1%
5,233,367
Compared to previous day
Last week
7.4%
27,882,760
Compared to previous week
Last month
12.6%
112,546,340
Compared to previous month
Last year
14.6%
1,172,739,477
Compared to previous year
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
4 existing vulnerabilities detected
Details
Reason
Found 0/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 SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
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