Validates Open Source Licenses for Nodejs Projects
$ 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.
.approved-licenses.yml can be added to via interactive mode. Removing licenses or modules should be done manually.
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
npx license-validator -im
Runs interactive mode but only runs through the projects modules.
Prints the help menu.