Socket
Socket
Sign inDemoInstall

opencollective-postinstall

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencollective-postinstall - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

7

index.js
#!/usr/bin/env node
var envDisable = Boolean(process.env.DISABLE_OPENCOLLECTIVE);
function isTrue(value) {
return !!value && value !== "0" && value !== "false"
}
var envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process.env.CI);
var logLevel = process.env.npm_config_loglevel;

@@ -4,0 +9,0 @@ var logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1;

10

package.json
{
"name": "opencollective-postinstall",
"version": "2.0.1",
"version": "2.0.2",
"description": "Lightweight npm postinstall message to invite people to donate to your collective",

@@ -11,3 +11,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/opencollective/npm-postinstall.git"
"url": "git+https://github.com/opencollective/opencollective-postinstall.git"
},

@@ -24,8 +24,8 @@ "bin": "index.js",

"bugs": {
"url": "https://github.com/opencollective/npm-postinstall/issues"
"url": "https://github.com/opencollective/opencollective-postinstall/issues"
},
"homepage": "https://github.com/opencollective/npm-postinstall#readme",
"homepage": "https://github.com/opencollective/opencollective-postinstall#readme",
"devDependencies": {
"jest": "^23.6.0"
"jest": "^24.0.0"
}
}

@@ -1,2 +0,3 @@

# npm-postinstall
# Open Collective postinstall
Lightweight npm postinstall message to invite people to donate to your collective

@@ -10,3 +11,3 @@

And in your `package.json` add:
And in your `package.json` add:

@@ -27,2 +28,3 @@ ```json

## 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`.

@@ -33,2 +35,1 @@

Note: This is a lightweight alternative to the [opencollective-cli](https://github.com/opencollective/opencollective-cli) that offers a more complete postinstall message with the current balance and ASCII logo of the collective.
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