license-validator
v1.0.3
Published
Validates open source licenses for your project.
Downloads
311
Maintainers
Readme
license-validator
Validates Open Source Licenses for Nodejs Projects
Usage
First-time setup
$ npx license-validator -i
This will generate the config file as approved-licenses.yml
. This file can be maintained through the CLI or manually.
After setup simply run a report.
$ npx license-validator
Returns code 1 when any license has not been explicitly approved via the config file. Prints a dependency tree of the failing modules due to invalid licenses.
The .approved-licenses.yml
can be added to via interactive mode. Removing licenses or modules should be done manually.
CLI Options
--summary
Prints a summary of existing licenses and modules and whether or not they are approved.
-i | --interactive
Runs interactive mode which will allow you to approve/disapprove on a license by license basis and updates your config file with your entries. Will only run on non-validated licenses/modules.
-m | --modules-only
Example: npx license-validator -im
Runs interactive mode but only runs through the projects modules.
--help
Prints the help menu.