1.0.1 • Published 5 years ago
license-checks v1.0.1
license-checks
Install
npm install license-checksUsage
license-checksOptions
--deepcheck all modules innode_modules(defaults todependenciesanddevDependencies)--only-prodcheck onlydependenciesinpackage.json(defaults todependenciesanddevDependencies)--countonly log license count (defaults to throwing an error when licenses are not whitelisted)--config FILEset the path to the config file (defaults toallowed-licenses.json)
Config file
You must have a config file. Either allowed-licenses.json or another JSON file (if defined with --config)
The JSON may have two keys:
whitelist(string[]) a list of whitelisted licensesexceptions({ package: string, license: string[] }) exceptions by package and license
Example file
{
"whitelist": [
"GPLv2",
"MIT",
],
"exceptions": [
{
"package": "some-commercial-package-i-have-a-license-for",
"license": "commercial"
}
]
}