yarn 许可
列出已安装包的许可。
yarn licenses list
运行此命令将按字母顺序列出由 yarn
或 yarn install
安装的所有包,并提供与每个包关联的许可(和源代码的 URL)。
yarn licenses list
yarn licenses v0.14.0
├─ [email protected]
│ ├─ License: ISC
│ └─ URL: git+https://github.com/jsdom/abab.git
├─ [email protected]
│ ├─ License: ISC
│ └─ URL: http://github.com/isaacs/abbrev-js
├─ [email protected]
│ ├─ License: MIT
│ └─ URL: https://github.com/ForbesLindesay/acorn-globals.git
├─ [email protected]
│ ├─ License: MIT
│ └─ URL: https://github.com/ternjs/acorn.git
├─ [email protected]
│ ├─ License: MIT
│ └─ URL: git://github.com/jonschlinkert/align-text.git
├─ [email protected]
│ ├─ License: BSD-3-Clause AND MIT
│ └─ URL: https://github.com/jrburke/amdefine.git
├─ [email protected]
│ ├─ License: MIT
│ └─ URL: https://github.com/sindresorhus/ansi-escapes.git
├─ [email protected]
│ ├─ License: MIT
│ └─ URL: https://github.com/sindresorhus/ansi-regex.git
...
yarn licenses generate-disclaimer
运行此命令将对已安装到 stdout
的所有包的许可进行排序并列出结果。
yarn licenses generate-disclaimer
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]]