Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

license-checker

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

license-checker - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

19

lib/index.js

@@ -17,14 +17,12 @@

var flatten = function(options) {
var moduleInfo = {licenses: UNKNOWN},
var moduleInfo = { licenses: UNKNOWN },
json = options.deps,
data = options.data,
key = json.name + '@' + json.version,
colorize = options.color,
licenseData, files, licenseFile, key;
licenseData, files, licenseFile;
if (colorize) {
moduleInfo = {licenses: chalk.bold.red(UNKNOWN)};
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version);
} else {
moduleInfo = {licenses: UNKNOWN};
key = json.name + '@' + json.version;
moduleInfo = { licenses: chalk.bold.red(UNKNOWN) };
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version);
}

@@ -121,2 +119,3 @@

}),
colorize = options.color,
sorted = {};

@@ -127,3 +126,7 @@ Object.keys(data).sort().forEach(function(item) {

if (data[item].licenses.indexOf('*') > -1) {
delete data[item];
if (colorize) {
data[item].licenses = chalk.bold.red(UNKNOWN);
} else {
data[item].licenses = UNKNOWN;
}
}

@@ -130,0 +133,0 @@ }

@@ -5,3 +5,3 @@ {

"author": "Dav Glass <davglass@gmail.com>",
"version": "2.0.0",
"version": "2.0.1",
"dependencies": {

@@ -8,0 +8,0 @@ "chalk": "~0.5.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc