首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

yarn licenses

列出安装软件包的许可证。

yarn licenses list

运行此命令将按字母顺序列出由yarnor yarn install安装的所有软件包,并为您提供与每个软件包相关的许可证(以及源代码的URL)。

代码语言:javascript
复制
yarn licenses list
代码语言:javascript
复制
yarn licenses v0.14.0
├─ abab@1.0.3
│  ├─ License: ISC
│  └─ URL: git+https://github.com/jsdom/abab.git
├─ abbrev@1.0.9
│  ├─ License: ISC
│  └─ URL: http://github.com/isaacs/abbrev-js
├─ acorn-globals@1.0.9
│  ├─ License: MIT
│  └─ URL: https://github.com/ForbesLindesay/acorn-globals.git
├─ acorn@2.7.0
│  ├─ License: MIT
│  └─ URL: https://github.com/ternjs/acorn.git
├─ align-text@0.1.4
│  ├─ License: MIT
│  └─ URL: git://github.com/jonschlinkert/align-text.git
├─ amdefine@1.0.0
│  ├─ License: BSD-3-Clause AND MIT
│  └─ URL: https://github.com/jrburke/amdefine.git
├─ ansi-escapes@1.4.0
│  ├─ License: MIT
│  └─ URL: https://github.com/sindresorhus/ansi-escapes.git
├─ ansi-regex@2.0.0
│  ├─ License: MIT
│  └─ URL: https://github.com/sindresorhus/ansi-regex.git
...

yarn licenses generate-disclaimer

运行此命令将返回已安装到的所有软件包的已排序许可证列表stdout

代码语言:javascript
复制
yarn licenses generate-disclaimer
代码语言:javascript
复制
The following software may be included in this product: package-1. This software contains the following license and notice below:

[[LICENSE TEXT]]

-----

The following software may be included in this product: package-2. This software contains the following license and notice below:

[[LICENSE TEXT]]

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com