{"_id":"7zip-min-win-asar-support","name":"7zip-min-win-asar-support","dist-tags":{"latest":"1.4.4"},"versions":{"1.4.4":{"name":"7zip-min-win-asar-support","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/onikienko/7zip-min.git"},"keywords":["7z","7zip","7-zip","7za","compress","decompress","extract","lzma","zip","gzip","bzip2","tar"],"author":{"name":"Mykhailo Onikiienko","email":"michael.onikienko@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/onikienko/7zip-min/issues"},"homepage":"https://github.com/onikienko/7zip-min#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":"87ec6a8db50cfed9f06663076abc46655a586289","_id":"7zip-min-win-asar-support@1.4.4","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-tlnSmrHqE16one8N3C1ry0pJS6P9blE4y4adPLW6W/8hGn4aTRAJCzhD90NAe3mBjne/IbVwPvJHEsNPG5Wglg==","shasum":"1b32ce675dcd98cefc09bee42a8d846ece6b0fed","tarball":"https://registry.npmjs.org/7zip-min-win-asar-support/-/7zip-min-win-asar-support-1.4.4.tgz","fileCount":7,"unpackedSize":16694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnW82N0PMnlOglzpnIjZYR7w+xUKQGqmptJVvksRml4wIhAKtdlMIXI766EFKs3o3Jz+VDndz7JFmTKuux6Cb+8PF3"}]},"_npmUser":{"name":"cocktailpeanut","email":"cocktailpeanuts@proton.me"},"directories":{},"maintainers":[{"name":"cocktailpeanut","email":"cocktailpeanuts@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/7zip-min-win-asar-support_1.4.4_1683842151702_0.1607287369935142"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T21:55:51.702Z","1.4.4":"2023-05-11T21:55:51.882Z","modified":"2023-05-11T21:55:52.041Z"},"maintainers":[{"name":"cocktailpeanut","email":"cocktailpeanuts@proton.me"}],"description":"Standalone cross-platform zip/unzip with 7za","homepage":"https://github.com/onikienko/7zip-min#readme","keywords":["7z","7zip","7-zip","7za","compress","decompress","extract","lzma","zip","gzip","bzip2","tar"],"repository":{"type":"git","url":"git+https://github.com/onikienko/7zip-min.git"},"author":{"name":"Mykhailo Onikiienko","email":"michael.onikienko@gmail.com"},"bugs":{"url":"https://github.com/onikienko/7zip-min/issues"},"license":"MIT","readme":"7zip-min\n========\n\n### Russian invaders must die. Glory to Ukraine. \n\nMinimal cross-platform pack/unpack (and any command) with **7-zip** for Node.js.   \nIt does not require **7zip** to be installed in your system. \nThis package includes standalone **7za** version of **7-Zip** (uses precompiled binaries from [7zip-bin](https://github.com/develar/7zip-bin) package).\n\n\nSupporting archive formats\n--------------------------\n\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. \n\n\nSupporting platforms\n--------------------\n\n- win (32/64)\n- mac\n  - arm64 (Apple Silicon)\n  - x64 \n- linux\n  - arm\n  - arm64\n  - ia32\n  - x64\n\nTo get more details check [7zip-bin](https://github.com/develar/7zip-bin) package repo. \n\n\nUsage\n-----\n\nYou may use `pack` and `unpack` methods for simple packing/unpacking. \n\nYou can also use `list` to get an array with the file content properties (includes date, time, attr, size, compressed and name)\n\nOr use `cmd` to run 7za with custom parameters (see [Command Line Version User's Guide](https://sevenzip.osdn.jp/chm/cmdline/index.htm))\n\n```js\nconst _7z = require('7zip-min');\n\n// unpack\n_7z.unpack('path/to/archive.7z', 'where/to/unpack', err => {\n    // done\n});\n\n// unpack into the current directory (process.cwd()) if no output directory specified\n_7z.unpack('path/to/archive.7z', err => {\n    // done\n});\n\n// pack\n_7z.pack('path/to/dir/or/file', 'path/to/archive.7z', err => {\n    // done\n});\n\n// list\n_7z.list('path/to/archive.7z', (err, result) => {\n    // in result you will have an array with info list for your archive\n    // for each element in archive you will have:\n    // name, date, time, attr, size (in bytes), compressed (compressed size in bytes), crc, method, encrtypted, block\n    // depeneds on archive type some values may be empty or missed\n});\n\n// cmd\n// in the first parameter you have to provide array of parameters\n// check 7z's Command Line Version User's Guide - https://sevenzip.osdn.jp/chm/cmdline/index.htm\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\n_7z.cmd(['a', 'path/to/archive.7z', 'path/to/dir/or/file'], err => {\n    // done\n});\n```\n\nTest\n----\n\n`npm test`\n","readmeFilename":"README.md"}