222
schangxiang@126.com
2025-06-13 6a8393408d8cefcea02b7a598967de8dc1e565c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 7zip Windows Package via Node.js
 
<a href="https://www.npmjs.com/package/7zip"><img height="20" src="https://img.shields.io/npm/dm/7zip.svg"></a>&nbsp;&nbsp;<a href="https://github.com/fritx/win-7zip"><img width="84" height="20" src="https://img.shields.io/badge/license-LGPL-yellow.svg"></a>&nbsp;&nbsp;<a href="https://ci.appveyor.com/project/fritx/win-7zip/branch/dev"><img height="20" src="https://ci.appveyor.com/api/projects/status/sx35sohgttwtemuo/branch/dev?svg=true"></a>
 
This npm package contains a lite-version of [7zip](http://7-zip.org), ≈2.4MB.
 
And the goal is to bring users a different and easy way to access 7zip.
 
Being used at library [cross-unzip](https://github.com/fritx/cross-unzip).
 
```plain
$ npm install -g 7zip   # global
```
 
```plain
$ 7z --help   # and you get 7z
```
 
```js
// $ npm install win-7zip   # local
// even in node.js
var _7z = require('win-7zip')['7z']
var task = spawn(_7z, ['x', 'somefile.7z', '-y'])
```
 
## License of 7zip
 
```plain
7-Zip Copyright (C) 1999-2015 Igor Pavlov.
 
Licenses for files are:
 
  1) 7z.dll: GNU LGPL + unRAR restriction
  2) All other files:  GNU LGPL
```