license-validator

1.0.3 • Public • Published

license-validator

Validates Open Source Licenses for Nodejs Projects

Build Status Coverage Status

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    115
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    115
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i license-validator

Weekly Downloads

115

Version

1.0.3

License

MIT

Unpacked Size

75.8 kB

Total Files

22

Last publish

Collaborators

  • kingnebby