New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

licenses

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

licenses - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

30

opensource.js

@@ -37,2 +37,3 @@ 'use strict';

url: 'http://opensource.org/licenses/AFL-3.0',
tldr: 'https://tldrlegal.com/license/academic-free-license-3.0-(afl)',
file: 'AFL3.0.txt'

@@ -45,2 +46,3 @@ },

url: 'http://opensource.org/licenses/AGPL-3.0',
tldr: 'https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)',
file: 'AGPL3.0.txt'

@@ -168,2 +170,3 @@ },

url: 'http://opensource.org/licenses/Artistic-2.0',
tldr: 'https://tldrlegal.com/license/artistic-license-2.0-(artistic)',
file: 'Artistic2.0.txt'

@@ -176,2 +179,3 @@ },

url: 'http://opensource.org/licenses/Apache-2.0',
tldr: 'https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)',
file: 'Apache2.0.txt'

@@ -184,2 +188,3 @@ },

url: 'http://opensource.org/licenses/APSL-2.0',
tldr: 'https://tldrlegal.com/license/apple-public-source-license-2.0-(apsl)',
file: 'APSL-2.0.txt'

@@ -206,2 +211,3 @@ },

url: 'http://en.wikipedia.org/wiki/Beerware',
tldr: 'https://tldrlegal.com/license/beerware-license',
file: 'beerware.txt'

@@ -214,2 +220,3 @@ },

url: 'http://opensource.org/licenses/BSD-2-Clause',
tldr: 'https://tldrlegal.com/license/bsd-2-clause-license-(freebsd)',
file: 'BSD-2-Clause.txt'

@@ -222,2 +229,3 @@ },

url: 'http://opensource.org/licenses/BSD-3-Clause',
tldr: 'https://tldrlegal.com/license/bsd-3-clause-license-(revised)',
file: 'BSD-3-Clause.txt'

@@ -237,2 +245,3 @@ },

url: 'http://opensource.org/licenses/BSL-1.0',
tldr: 'https://tldrlegal.com/license/boost-software-license-1.0-explained',
file: 'BSL1.0.txt'

@@ -259,2 +268,3 @@ },

url: 'http://opensource.org/licenses/CDDL-1.0',
tldr: 'https://tldrlegal.com/license/common-development-and-distribution-license-(cddl-1.0)-explained',
file: 'cddl1.txt'

@@ -267,2 +277,3 @@ },

url: 'http://opensource.org/licenses/CPAL-1.0',
tldr: 'https://tldrlegal.com/license/common-public-attribution-license-version-1.0-(cpal-1.0)',
file: 'CPAL1.0.txt'

@@ -289,2 +300,3 @@ },

url: 'http://opensource.org/licenses/EPL-1.0',
tldr: 'https://tldrlegal.com/license/eclipse-public-license-1.0-(epl-1.0)',
file: 'EPL-1.0.txt'

@@ -318,2 +330,3 @@ },

url: 'https://joinup.ec.europa.eu/system/files/EN/EUPL%20v.1.1%20-%20Licence.pdf',
tldr: 'https://tldrlegal.com/license/european-union-public-licence',
file: 'EUPL1.1.txt'

@@ -326,2 +339,3 @@ },

url: 'http://opensource.org/licenses/Fair',
tldr: 'https://tldrlegal.com/license/fair-license',
file: 'FAIR.txt'

@@ -341,2 +355,3 @@ },

url: 'http://opensource.org/licenses/GPL-2.0',
tldr: 'https://tldrlegal.com/license/gnu-general-public-license-v2',
file: 'GPL-2.0.txt'

@@ -349,2 +364,3 @@ },

url: 'http://opensource.org/licenses/GPL-3.0',
tldr: 'https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)',
file: 'GPL-3.0.txt'

@@ -364,2 +380,3 @@ },

url: 'http://opensource.org/licenses/ISC',
tldr: 'https://tldrlegal.com/license/-isc-license',
file: 'ISC.txt'

@@ -414,2 +431,3 @@ },

url: 'http://opensource.org/licenses/LGPL-2.1',
tldr: 'https://tldrlegal.com/license/gnu-lesser-general-public-license-v2.1-(lgpl-2.1)',
file: 'LGPL-2.1.txt'

@@ -443,2 +461,3 @@ },

url: 'http://opensource.org/licenses/IPL-1.0',
tldr: 'https://tldrlegal.com/license/ibm-public-license-1.0-(ipl)',
file: 'IPL-1.0.txt'

@@ -451,2 +470,3 @@ },

url: 'http://opensource.org/licenses/IPA',
tldr: 'https://tldrlegal.com/license/ipa-font-license-(ipa)',
file: 'IPA.txt'

@@ -459,2 +479,3 @@ },

url: 'http://opensource.org/licenses/MIT',
tldr: 'https://tldrlegal.com/license/mit-license',
file: 'MIT.txt'

@@ -474,2 +495,3 @@ },

url: 'http://opensource.org/licenses/MPL-2.0',
tldr: 'https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2)',
file: 'MPL-2.0.txt'

@@ -545,2 +567,3 @@ },

url: 'http://opensource.org/licenses/OFL-1.1',
tldr: 'https://tldrlegal.com/license/open-font-license-(ofl)-explained',
file: 'OFL-1.1.txt'

@@ -560,2 +583,3 @@ },

url: 'http://opensource.org/licenses/PHP-3.0',
tldr: 'https://tldrlegal.com/license/php-license-3.0-(php)',
file: 'PHP-3.0.txt'

@@ -580,2 +604,3 @@ },

url: 'http://opensource.org/licenses/Python-2.0',
tldr: 'https://tldrlegal.com/license/python-license-2.0',
file: 'Python2.txt'

@@ -623,2 +648,3 @@ },

url: 'http://opensource.org/licenses/SimPL-2.0',
tldr: 'https://tldrlegal.com/license/simple-public-license-2.0-(simpl)',
file: 'SIMPL-2.0.txt'

@@ -631,2 +657,3 @@ },

url: 'http://opensource.org/licenses/Sleepycat',
tldr: 'https://tldrlegal.com/license/sleepycat-license',
file: 'SLEEPYCAT.txt'

@@ -653,2 +680,3 @@ },

url: 'http://opensource.org/licenses/NCSA',
tldr: 'https://tldrlegal.com/license/university-of-illinois---ncsa-open-source-license-(ncsa)',
file: 'NCSA.txt'

@@ -708,2 +736,3 @@ },

url: 'http://www.wtfpl.net',
tldr: 'https://tldrlegal.com/license/do-wtf-you-want-to-public-license-v2-(wtfpl-2.0)',
file: 'WTFPL.txt'

@@ -716,2 +745,3 @@ },

url: 'http://opensource.org/licenses/Zlib',
tldr: 'https://tldrlegal.com/license/zlib-libpng-license-(zlib)',
file: 'zlib.txt'

@@ -718,0 +748,0 @@ }

2

package.json
{
"name": "licenses",
"version": "0.0.18",
"version": "0.0.19",
"description": "A small tool that detects licensing information for a given Node.js module",

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

@@ -70,2 +70,34 @@ describe('opensource', function () {

describe('tldr', function () {
var request = require('request');
opensource.full.filter(function filter(license) {
return !!license.tldr;
}).forEach(function each(license) {
it('has a valid license tldr for: '+ license.full, function (next) {
this.timeout(10000);
request({
uri: license.tldr,
followRedirect: false,
headers: {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Encoding': 'gzip,deflate,sdch',
'Accept-Language': 'en-US,en;q=0.8',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'DNT': '1',
'Pragma': 'no-cache',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36'
}
}, function done(err, res, body) {
if (err) return next(err);
if (res.statusCode !== 200) return next(new Error('Invalid statusCode: '+ res.statusCode));
next();
});
});
});
});
describe('file', function () {

@@ -72,0 +104,0 @@ var path = require('path')

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