Gathering detailed insights and metrics for zip-stream
Gathering detailed insights and metrics for zip-stream
Gathering detailed insights and metrics for zip-stream
Gathering detailed insights and metrics for zip-stream
npm install zip-stream
97.8
Supply Chain
79.7
Quality
84.4
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
154 Stars
353 Commits
21 Forks
9 Watching
9 Branches
7 Contributors
Updated on 07 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-4%
1,819,418
Compared to previous day
Last week
3%
10,245,778
Compared to previous week
Last month
6.3%
42,715,492
Compared to previous month
Last year
32.2%
444,642,731
Compared to previous year
3
zip-stream is a streaming zip archive generator based on the ZipArchiveOutputStream
prototype found in the compress-commons project.
It was originally created to be a successor to zipstream.
Visit the API documentation for a list of all methods available.
1npm install zip-stream --save
You can also use npm install https://github.com/archiverjs/node-zip-stream/archive/master.tar.gz
to test upcoming versions.
This module is meant to be wrapped internally by other modules and therefore lacks any queue management. This means you have to wait until the previous entry has been fully consumed to add another. Nested callbacks should be used to add multiple entries. There are modules like async that ease the so called "callback hell".
If you want a module that handles entry queueing and much more, you should check out archiver which uses this module internally.
1import { ZipStream } from "zip-stream": 2const archive = new ZipStream(); // OR new ZipStream(options) 3 4archive.on("error", function (err) { 5 throw err; 6}); 7 8// pipe archive where you want it (ie fs, http, etc) 9// listen to the destination's end, close, or finish event 10 11archive.entry("string contents", { name: "string.txt" }, function (err, entry) { 12 if (err) throw err; 13 archive.entry(null, { name: "directory/" }, function (err, entry) { 14 if (err) throw err; 15 archive.finish(); 16 }); 17});
Concept inspired by Antoine van Wel's zipstream module, which is no longer being updated.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
18 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 0/12 approved changesets -- 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
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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