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

package-license

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-license - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

14

index.js

@@ -12,3 +12,15 @@ var fs = require('fs');

} else if (str.indexOf('Apache License') > -1) {
return 'Apache*';
return 'Apache*';
} else if (str.indexOf('Mozilla') > -1) {
return 'Mozilla*';
} else if (str.indexOf('LGPL') > -1) {
return 'LGPL*';
} else if (str.indexOf('Affero') > -1) {
return 'GPL*';
} else if (str.indexOf('GPL') > -1) {
return 'GPL*';
} else if (str.indexOf('Eclipse') > -1) {
return 'Eclipse*';
} else if (str.indexOf('Artistic') > -1) {
return 'Artistic*';
} else if (str.indexOf('DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE') > -1) {

@@ -15,0 +27,0 @@ return 'WTF*';

2

package.json
{
"name": "package-license",
"version": "0.1.2",
"version": "0.2.0",
"description": "Checks the filesystem for potential license files and attempts to detect what they are",

@@ -5,0 +5,0 @@ "main": "index.js",

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