Installations
npm install jy-7zip-min
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
18.17.0
NPM Version
9.6.7
Score
69.5
Supply Chain
91.9
Quality
75.9
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
Download Statistics
Total Downloads
176
Last Day
1
Last Week
3
Last Month
9
Last Year
176
GitHub Statistics
MIT License
43 Stars
194 Commits
16 Forks
4 Watchers
1 Branches
5 Contributors
Updated on Feb 22, 2025
Bundle Size
1.84 kB
Minified
949.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
jy-7zip-min@1.0.0
Unpacked Size
16.21 kB
Size
5.92 kB
File Count
7
NPM Version
9.6.7
Node Version
18.17.0
Published on
Aug 27, 2024
Total Downloads
Cumulative downloads
Total Downloads
176
Last Day
0%
1
Compared to previous day
Last Week
0%
3
Compared to previous week
Last Month
-40%
9
Compared to previous month
Last Year
0%
176
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
7zip-min
Minimal cross-platform pack/unpack (and any command) with 7-zip for Node.js.
It does not require 7zip to be installed in your system.
This package includes standalone 7za version of 7-Zip (uses precompiled binaries from 7zip-bin package).
Supporting archive formats
According to Command Line Version User's Guide page, 7za supports only 7z, lzma, cab, zip, gzip, bzip2, Z and tar formats.
Supporting platforms
- win (32/64)
- mac
- arm64 (Apple Silicon)
- x64
- linux
- arm
- arm64
- ia32
- x64
To get more details check 7zip-bin package repo.
Usage
You may use pack
and unpack
methods for simple packing/unpacking.
You can also use list
to get an array with the file content properties (includes date, time, attr, size, compressed and name)
Or use cmd
to run 7za with custom parameters (see Command Line Version User's Guide)
1const _7z = require('7zip-min'); 2 3// unpack 4_7z.unpack('path/to/archive.7z', 'where/to/unpack', err => { 5 // done 6}); 7 8// unpack into the current directory (process.cwd()) if no output directory specified 9_7z.unpack('path/to/archive.7z', err => { 10 // done 11}); 12 13// pack 14_7z.pack('path/to/dir/or/file', 'path/to/archive.7z', err => { 15 // done 16}); 17 18// list 19_7z.list('path/to/archive.7z', (err, result) => { 20 // in result you will have an array with info list for your archive 21 // For each element in the archive you will have: 22 // name, date, time, attr, size (in bytes), compressed (compressed size in bytes), crc, method, encrypted, block 23 // Depending on the archive type some values may be empty or missed 24}); 25 26// cmd 27// in the first parameter you have to provide an array of parameters 28// check 7z's Command Line Version User's Guide - https://sevenzip.osdn.jp/chm/cmdline/index.htm 29// the bellow command is equal to `7za a path/to/archive.7z path/to/dir/or/file` and will add `path/to/dir/or/file` to `path/to/archive.7z` archive 30_7z.cmd(['a', 'path/to/archive.7z', 'path/to/dir/or/file'], err => { 31 // done 32});
Test
npm test

No vulnerabilities found.
Reason
25 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
4 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv
- Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q
- Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38
- Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 24 are checked with a SAST tool
Score
3.8
/10
Last Scanned on 2025-03-10
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