Gathering detailed insights and metrics for jaswude-adm-zip
Gathering detailed insights and metrics for jaswude-adm-zip
Gathering detailed insights and metrics for jaswude-adm-zip
Gathering detailed insights and metrics for jaswude-adm-zip
npm install jaswude-adm-zip
Typescript
Module System
Min. Node Version
Node Version
NPM Version
75
Supply Chain
92.5
Quality
75.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,275
Last Day
1
Last Week
1
Last Month
24
Last Year
223
2,067 Stars
455 Commits
375 Forks
40 Watching
3 Branches
89 Contributors
Latest Version
0.5.15
Package Id
jaswude-adm-zip@0.5.15
Unpacked Size
112.14 kB
Size
25.30 kB
File Count
20
NPM Version
8.1.2
Node Version
16.13.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-66.7%
1
Compared to previous week
Last month
700%
24
Compared to previous month
Last year
-51.4%
223
Compared to previous year
1
--以下是adm-zip原文档,截至2022-02-15--
With npm do:
$ npm install adm-zip
The library allows you to:
There are no other nodeJS libraries that ADM-ZIP is dependent of
1var AdmZip = require("adm-zip"); 2 3// reading archives 4var zip = new AdmZip("./my_file.zip"); 5var zipEntries = zip.getEntries(); // an array of ZipEntry records 6 7zipEntries.forEach(function (zipEntry) { 8 console.log(zipEntry.toString()); // outputs zip entries information 9 if (zipEntry.entryName == "my_file.txt") { 10 console.log(zipEntry.getData().toString("utf8")); 11 } 12}); 13// outputs the content of some_folder/my_file.txt 14console.log(zip.readAsText("some_folder/my_file.txt")); 15// extracts the specified file to the specified location 16zip.extractEntryTo(/*entry name*/ "some_folder/my_file.txt", /*target path*/ "/home/me/tempfolder", /*maintainEntryPath*/ false, /*overwrite*/ true); 17// extracts everything 18zip.extractAllTo(/*target path*/ "/home/me/zipcontent/", /*overwrite*/ true); 19 20// creating archives 21var zip = new AdmZip(); 22 23// add file directly 24var content = "inner content of the file"; 25zip.addFile("test.txt", Buffer.from(content, "utf8"), "entry comment goes here"); 26// add local file 27zip.addLocalFile("/home/me/some_picture.png"); 28// get everything as a buffer 29var willSendthis = zip.toBuffer(); 30// or write everything to disk 31zip.writeZip(/*target file name*/ "/home/me/files.zip"); 32 33// ... more examples in the wiki
For more detailed information please check out the wiki.
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
SAST tool detected but not run on all commits
Details
Reason
Found 6/19 approved changesets -- score normalized to 3
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
dependency not pinned by hash detected -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-23
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