lightercollective
Advanced tools
Comparing version 0.1.0 to 0.2.0
10
index.js
@@ -7,3 +7,11 @@ #!/usr/bin/env node | ||
var collective = package.collective; | ||
if (!collective) process.exit(0); | ||
if ( | ||
!collective || | ||
-1 < ['silent', 'error', 'warn'].indexOf(process.env.npm_config_loglevel) || | ||
/^(?:1|true|yes|y)$/i.test(process.env.DISABLE_OPENCOLLECTIVE) | ||
) { | ||
process.exit(0); | ||
} | ||
if (collective.logo) { | ||
@@ -10,0 +18,0 @@ if (/^(https?):/.test(collective.logo)) |
{ | ||
"name": "lightercollective", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "a basic postinstall only binary based on package.json collective info", | ||
@@ -5,0 +5,0 @@ "bin": "./index.js", |
@@ -48,1 +48,6 @@ # lightercollective | ||
``` | ||
### Disabling this message | ||
In some places (e.g. CI) you may want to disable this output. You can do this by setting the environment variable `DISABLE_OPENCOLLECTIVE=true`, where `true` could also be `1`, `yes`, or `y`. | ||
This message will not be shown if npm's log level is set to silent (`--silent`), warn (`--quiet`), or error (`--loglevel error`). |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
4566
53
53
6