7zip

中文文档
0.0.6发布于 2016/05/15GNU LGPLCommonJS零依赖近 30 天下载 13.5万

7zip Windows Package via Node.js

此软件包已被标记为弃用

Deprecated as outdated and risky. Please migrate to some modern alternatives. See: https://www.npmjs.com/search

原始使用文档

7zip Windows Package via Node.js

  

This npm package contains a lite-version of 7zip, ≈2.4MB.

And the goal is to bring users a different and easy way to access 7zip.

Being used at library cross-unzip.

$ npm install -g 7zip   # global
$ 7z --help   # and you get 7z
// $ npm install 7zip   # local
// even in node.js
var _7z = require('7zip')['7z']
var task = spawn(_7z, ['x', 'somefile.7z', '-y'])

License of 7zip

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

版本与发布记录

7zip 共发布 7 个版本,首次发布于 2015/07/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.0.6latest2016/05/1510 年前
0.0.52016/04/2710 年前
0.0.42016/04/2610 年前
0.0.32015/07/2711 年前
0.0.22015/07/2711 年前
0.0.12015/07/2611 年前

关于 7zip 的常见问题

7zip 是什么?

7zip Windows Package via Node.js注意:该包已被作者标记为弃用——Deprecated as outdated and risky. Please migrate to some modern alternatives. See: https://www.npmjs.com/search

如何安装 7zip?

在项目目录运行 npm install 7zip,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 7z,可以用 npx 7z 直接运行。

7zip 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/7zip 是否存在。

7zip 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

7zip 可以商用吗?

7zip 使用 GNU LGPL 许可。声明的许可为 GNU LGPL,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

7zip 的下载量有多少?

根据 npm 官方下载统计,7zip 在 2026/10/04 – 2026/11/02 这 30 天内被下载 134,653 次,日均约 4,488 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

7zip 还在维护吗?

最新版本 0.0.6 发布于 2016/05/15(10 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2015/07/26。作者已将其标记为弃用,新项目建议寻找替代方案。