summaryrefslogtreecommitdiff
path: root/node_modules/opencollective-postinstall/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/opencollective-postinstall/index.js')
-rwxr-xr-xnode_modules/opencollective-postinstall/index.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/opencollective-postinstall/index.js b/node_modules/opencollective-postinstall/index.js
deleted file mode 100755
index 8b8ce0f8..00000000
--- a/node_modules/opencollective-postinstall/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env node
-
-function isTrue(value) {
- return !!value && value !== "0" && value !== "false"
-}
-
-var envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process.env.OPEN_SOURCE_CONTRIBUTOR) || isTrue(process.env.CI);
-var logLevel = process.env.npm_config_loglevel;
-var logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1;
-
-if (!envDisable && !logLevelDisplay) {
- var pkg = require(require('path').resolve('./package.json'));
- if (pkg.collective) {
- console.log(`\u001b[96m\u001b[1mThank you for using ${pkg.name}!\u001b[96m\u001b[1m`);
- console.log(`\u001b[0m\u001b[96mIf you rely on this package, please consider supporting our open collective:\u001b[22m\u001b[39m`);
- console.log(`> \u001b[94m${pkg.collective.url}/donate\u001b[0m\n`);
- }
-}