Gathering detailed insights and metrics for 7zip-min-electron
Gathering detailed insights and metrics for 7zip-min-electron
Minimal standalone cross-platform pack/unpack with 7-zip for Electron
npm install 7zip-min-electron
Typescript
Module System
Node Version
NPM Version
69.7
Supply Chain
91.9
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
1,056
Last Day
5
Last Week
53
Last Month
138
Last Year
772
MIT License
1 Stars
168 Commits
1 Branches
1 Contributors
Updated on May 22, 2024
Minified
Minified + Gzipped
Latest Version
1.4.4
Package Id
7zip-min-electron@1.4.4
Unpacked Size
16.76 kB
Size
5.96 kB
File Count
7
NPM Version
8.19.4
Node Version
16.20.1
Published on
Nov 14, 2023
Cumulative downloads
Total Downloads
Last Day
-37.5%
5
Compared to previous day
Last Week
130.4%
53
Compared to previous week
Last Month
263.2%
138
Compared to previous month
Last Year
171.8%
772
Compared to previous year
Minimal cross-platform pack/unpack (and any command) with 7-zip for Electron.
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).
According to Command Line Version User's Guide page, 7za supports only 7z, lzma, cab, zip, gzip, bzip2, Z and tar formats.
To get more details check 7zip-bin package repo.
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-electron'); 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 archive you will have: 22 // name, date, time, attr, size (in bytes), compressed (compressed size in bytes), crc, method, encrtypted, block 23 // depeneds on archive type some values may be empty or missed 24}); 25 26// cmd 27// in the first parameter you have to provide 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});
npm test
No vulnerabilities found.
No security vulnerabilities found.