2.1.0 • Published 8 years ago
license-data v2.1.0
license-report --output=json > outputfile.json
license report tool
generate license report of a project's dependencies
install
npm install -g license-reportusage
simple:
> cd your/project/
> license-reportby default, license-report outputs all licenses from dependencies and devDependencies.
To specify one or the other, use --only
> license-report --only=dev > license-report --only=prodexplicit package.json:
license-report --package=/path/to/package.jsoncustomize a field's label:
license-report --report.label.department=divisioncustomize a default value (only applicable for some fields):
license-report --department.label=division --department.value=ninjaSquadanother registry:
license-report --registry=https://myregistry.com/different outputs:
license-report --output=table
license-report --output=json
license-report --output=csv
license-report --output=csv --delimiter="|"exclude (TBD):
license-report --excluse=async --exclude=rc
debug
export DEBUG=license-report*see lib/config.js for more details
use rc for further customization
TODO
- complete exclude libraries feature
- refactor getPackageJson and getPackageReportData to be usable for both local filesystem and npm

2.1.0
8 years ago