license-report
Advanced tools
Comparing version 1.0.8 to 2.0.0
@@ -32,5 +32,8 @@ #!/usr/bin/env node | ||
addAll(deps, depsIndex) | ||
addAll(devDeps, depsIndex) | ||
if(!config.only || config.only.indexOf('prod') > -1) | ||
addAll(deps, depsIndex) | ||
if(!config.only || config.only.indexOf('dev') > -1) | ||
addAll(devDeps, depsIndex) | ||
async.map(depsIndex, getPackageReportData, function(err, results) { | ||
@@ -37,0 +40,0 @@ if (err) return console.error(err) |
@@ -18,2 +18,7 @@ var rc = require('rc') | ||
/* | ||
export deps or dev deps. falsey -> output everything | ||
*/ | ||
only: null, | ||
/* | ||
npm registry url | ||
@@ -20,0 +25,0 @@ */ |
{ | ||
"name": "license-report", | ||
"version": "1.0.8", | ||
"version": "2.0.0", | ||
"description": "creates a short report about project's dependencies (license, url etc)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,10 @@ # license report tool | ||
``` | ||
by 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=prod | ||
``` | ||
explicit package.json: | ||
@@ -59,2 +67,2 @@ ``` | ||
![ironSource logo](ironsource.png) | ||
![ironSource logo](ironsource.png) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81925
347
67
2