licenses

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

License Information

许可证信息

Check license compliance across all project dependencies. Licenses are normalized to SPDX identifiers.
检查所有项目依赖项的许可证合规性。许可证已标准化为SPDX identifiers。

Commands

命令

Show all dependency licenses:
bash
git-pkgs licenses
Options:
  • --ecosystem=ECO
    - filter by ecosystem
  • --json
    - JSON output
显示所有依赖项许可证:
bash
git-pkgs licenses
选项:
  • --ecosystem=ECO
    - 按生态系统筛选
  • --json
    - JSON格式输出

License categories

许可证类别

Permissive (safe for most uses): MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Unlicense
Weak copyleft (review needed, may affect linking): LGPL-2.1, LGPL-3.0, MPL-2.0
Strong copyleft (affects distribution of derivative works): GPL-2.0, GPL-3.0, AGPL-3.0
No license means the code is not open source. Do not use packages without a license.
宽松许可证(适用于大多数场景):MIT、Apache-2.0、BSD-2-Clause、BSD-3-Clause、ISC、Unlicense
弱copyleft许可证(需审核,可能影响链接):LGPL-2.1、LGPL-3.0、MPL-2.0
强copyleft许可证(影响衍生作品分发):GPL-2.0、GPL-3.0、AGPL-3.0
无许可证意味着代码不是开源的。请勿使用无许可证的包。

When to use

使用场景

  • Before releasing software to check license compatibility
  • During compliance audits
  • When adding new dependencies to verify license terms
  • When preparing license attribution notices
  • 发布软件前检查许可证兼容性
  • 合规审核期间
  • 添加新依赖项时验证许可证条款
  • 准备许可证归属声明时