【文件属性】:
文件名称:node-license-validator:根据列表验证依赖项的许可证
文件大小:46KB
文件格式:ZIP
更新时间:2021-07-24 00:54:25
JavaScript
节点许可证验证器
此模块是一个编程和命令行工具,可帮助您根据允许列表验证依赖项的许可证。 它适用于构建过程。 它使用 、 和 。
安装
全球指挥
npm install -g node-license-validator
本地包
npm install --save node-license-validator
为了方便访问,修改package.json以将其包含为脚本:
{
"scripts": {
"nlv": "node-license-validator"
}
}
并使用npm run nlv -- --allow-licenses [etc]运行它。 请注意,您需要npm >= 2.0 以这种方式将参数传递给脚本。
命令行使用
由:
Usage: node-license-validator [dirname] [options]
Options:
【文件预览】:
node-license-validator-master
----index.js(6KB)
----test-cli.js(359B)
----test.js(12KB)
----package.json(1KB)
----.github()
--------dependabot.yml(228B)
--------workflows()
----package-lock.json(132KB)
----.gitignore(38B)
----test-cli-runner.js(2KB)
----README.md(7KB)
----.jshintrc(353B)
----cli.js(4KB)