Socket
Socket
Sign inDemoInstall

licensee

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

licensee - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

2

index.js

@@ -160,3 +160,3 @@ module.exports = licensee

function isObject (argument) {
return typeof argument === 'object'
return argument && typeof argument === 'object'
}

@@ -163,0 +163,0 @@

{
"name": "licensee",
"description": "check dependency licenses against rules",
"version": "8.0.1",
"version": "8.0.2",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)",

@@ -6,0 +6,0 @@ "contributors": [

@@ -48,3 +48,3 @@ # licensee

You can specify a minimum Blue Oak Council [license
For example, you can specify a minimum Blue Oak Council [license
rating]---lead, bronze, silver, or gold---like so:

@@ -62,22 +62,9 @@

You can also whitelist all [OSI]-approved licenses:
You can combine categories and specific license identifiers, too:
[osi]: https://opensource.org
```json
{
"licenses": {
"osi": true
}
}
```
All of these can be combined:
```json
{
"licenses": {
"spdx": ["CC-BY-4.0"],
"blueOak": "gold",
"osi": true
"blueOak": "gold"
}

@@ -154,2 +141,13 @@ }

To check only production dependencies, ignoring development dependencies,
use `--production` flag:
```json
{
"scripts": {
"posttest": "licensee --production"
}
}
```
For output as newline-delimited JSON objects, for further processing:

@@ -156,0 +154,0 @@

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