A license scanner that enumerates all NPM dependencies and displays their licenses and statistics.
To install locally within the current project:
npm install https://github.com/psmorrow/license-scanner.git
To install globally within the operating system:
npm install -g https://github.com/psmorrow/license-scanner.git
To use locally within the current project (call from code):
require("license-scanner").scan([directory], [format])
To use globally within the operating system (execute via command line):
license-scanner [directory] [format]
Name | Type | Description | Default |
---|---|---|---|
directory |
String | The relative path to scan. | ./node_modules |
format |
String | The scan results format, either print or json . |
print |