From 51417bdc0815925258ab4ee25dcc670da8ef3610 Mon Sep 17 00:00:00 2001 From: jmnote Date: Fri, 3 Mar 2023 02:14:09 +0000 Subject: [PATCH] list licenses in verbose mode --- src/checker.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/checker.ts b/src/checker.ts index 6565b7a..f7fc7a8 100644 --- a/src/checker.ts +++ b/src/checker.ts @@ -347,6 +347,9 @@ export class LicenseChecker extends EventEmitter { console.log(`${packageName} is allowlisted.`); } else { const license = this.getLicense(json); + if (this.opts.verbose) { + console.log(`${packageAndVersion},${license}`); + } if (!this.isGreenLicense(license)) { this.emit('non-green-license', { packageName,