{"_id":"7zip-min-electron","name":"7zip-min-electron","dist-tags":{"latest":"1.4.4"},"versions":{"1.4.4":{"name":"7zip-min-electron","version":"1.4.4","description":"Standalone cross-platform zip/unzip with 7za","main":"index.js","scripts":{"release":"np --no-yarn --no-cleanup","preview":"np --no-yarn --no-cleanup --preview","test":"ava"},"repository":{"type":"git","url":"git+https://github.com/xianyunleo/7zip-min-electron.git"},"keywords":["electron","7z","7zip","7-zip","7za","compress","decompress","extract","lzma","zip","gzip","bzip2","tar"],"author":{"name":"xianyunleo","email":"xianyunleo@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xianyunleo/7zip-min-electron/issues"},"homepage":"https://github.com/xianyunleo/7zip-min-electron#readme","dependencies":{"7zip-bin":"5.1.1"},"devDependencies":{"ava":"^4.0.1","fs-extra":"^11.1.0","fsify":"^5.0.0","glob":"^8.0.1","np":"^7.6.0"},"gitHead":"3d4f4963f6517b05b0e33f86642db3aa6d744bca","_id":"7zip-min-electron@1.4.4","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WzXB8ajfYQ2kuGA/Fp9nt25wPkg6RZUBPb+hZ2qLluSpN/uhKzGfVYCuJ5NwtqWDgslQ/DGxhaaFl3tQvJVoEQ==","shasum":"b7c425862b62792d1ed28ad672bad7aa70843477","tarball":"https://registry.npmjs.org/7zip-min-electron/-/7zip-min-electron-1.4.4.tgz","fileCount":7,"unpackedSize":17164,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyx+ZiTTEx02eOTv5nNOloFws2U+HNnnZyLT/GYiXuUAiAEA0tDKwkOnggkhyyDetWpwpMiG90C+DP9JjBlcYCmuw=="}]},"_npmUser":{"name":"xianyunleo","email":"xianyunleo@qq.com"},"directories":{},"maintainers":[{"name":"xianyunleo","email":"xianyunleo@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/7zip-min-electron_1.4.4_1699965091474_0.4957654534498732"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-14T12:31:31.474Z","1.4.4":"2023-11-14T12:31:31.678Z","modified":"2023-11-14T12:31:31.921Z"},"maintainers":[{"name":"xianyunleo","email":"xianyunleo@qq.com"}],"description":"Standalone cross-platform zip/unzip with 7za","homepage":"https://github.com/xianyunleo/7zip-min-electron#readme","keywords":["electron","7z","7zip","7-zip","7za","compress","decompress","extract","lzma","zip","gzip","bzip2","tar"],"repository":{"type":"git","url":"git+https://github.com/xianyunleo/7zip-min-electron.git"},"author":{"name":"xianyunleo","email":"xianyunleo@gmail.com"},"bugs":{"url":"https://github.com/xianyunleo/7zip-min-electron/issues"},"license":"MIT","readme":"7zip-min-electron\r\n========\r\n\r\nMinimal cross-platform pack/unpack (and any command) with **7-zip** for Electron.   \r\nIt does not require **7zip** to be installed in your system. \r\nThis package includes standalone **7za** version of **7-Zip** (uses precompiled binaries from [7zip-bin](https://github.com/develar/7zip-bin) package).\r\n\r\n\r\nSupporting archive formats\r\n--------------------------\r\n\r\nAccording to [Command Line Version User's Guide](https://sevenzip.osdn.jp/chm/cmdline/index.htm) page, 7za supports only **7z**, **lzma**, **cab**, **zip**, **gzip**, **bzip2**, **Z** and **tar** formats. \r\n\r\n\r\nSupporting platforms\r\n--------------------\r\n\r\n- win (32/64)\r\n- mac\r\n  - arm64 (Apple Silicon)\r\n  - x64 \r\n- linux\r\n  - arm\r\n  - arm64\r\n  - ia32\r\n  - x64\r\n\r\nTo get more details check [7zip-bin](https://github.com/develar/7zip-bin) package repo. \r\n\r\n\r\nUsage\r\n-----\r\n\r\nYou may use `pack` and `unpack` methods for simple packing/unpacking. \r\n\r\nYou can also use `list` to get an array with the file content properties (includes date, time, attr, size, compressed and name)\r\n\r\nOr use `cmd` to run 7za with custom parameters (see [Command Line Version User's Guide](https://sevenzip.osdn.jp/chm/cmdline/index.htm))\r\n\r\n```js\r\nconst _7z = require('7zip-min-electron');\r\n\r\n// unpack\r\n_7z.unpack('path/to/archive.7z', 'where/to/unpack', err => {\r\n    // done\r\n});\r\n\r\n// unpack into the current directory (process.cwd()) if no output directory specified\r\n_7z.unpack('path/to/archive.7z', err => {\r\n    // done\r\n});\r\n\r\n// pack\r\n_7z.pack('path/to/dir/or/file', 'path/to/archive.7z', err => {\r\n    // done\r\n});\r\n\r\n// list\r\n_7z.list('path/to/archive.7z', (err, result) => {\r\n    // in result you will have an array with info list for your archive\r\n    // for each element in archive you will have:\r\n    // name, date, time, attr, size (in bytes), compressed (compressed size in bytes), crc, method, encrtypted, block\r\n    // depeneds on archive type some values may be empty or missed\r\n});\r\n\r\n// cmd\r\n// in the first parameter you have to provide array of parameters\r\n// check 7z's Command Line Version User's Guide - https://sevenzip.osdn.jp/chm/cmdline/index.htm\r\n// 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\r\n_7z.cmd(['a', 'path/to/archive.7z', 'path/to/dir/or/file'], err => {\r\n    // done\r\n});\r\n```\r\n\r\nTest\r\n----\r\n\r\n`npm test`\r\n","readmeFilename":"README.md"}