summaryrefslogtreecommitdiff
path: root/node_modules/opencollective-postinstall
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/opencollective-postinstall
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/opencollective-postinstall')
-rw-r--r--node_modules/opencollective-postinstall/LICENSE21
-rw-r--r--node_modules/opencollective-postinstall/README.md34
-rwxr-xr-xnode_modules/opencollective-postinstall/index.js18
-rw-r--r--node_modules/opencollective-postinstall/package.json32
4 files changed, 0 insertions, 105 deletions
diff --git a/node_modules/opencollective-postinstall/LICENSE b/node_modules/opencollective-postinstall/LICENSE
deleted file mode 100644
index 908bbc2e..00000000
--- a/node_modules/opencollective-postinstall/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2018 Open Collective
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/opencollective-postinstall/README.md b/node_modules/opencollective-postinstall/README.md
deleted file mode 100644
index fd571fea..00000000
--- a/node_modules/opencollective-postinstall/README.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Open Collective postinstall
-
-[![Greenkeeper badge](https://badges.greenkeeper.io/opencollective/opencollective-postinstall.svg)](https://greenkeeper.io/)
-
-Lightweight npm postinstall message to invite people to donate to your collective
-
-## Installation
-
-```
-npm install --save opencollective-postinstall
-```
-
-And in your `package.json` add:
-
-```json
-{
- ...
- "scripts": {
- "postinstall": "opencollective-postinstall"
- },
- "collective": {
- "url": "https://opencollective.com/webpack"
- }
- ...
-}
-```
-
-## 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`.
-
-It will not be shown if npm's log level is set to silent (`--silent`), warn (`--quiet`), or error (`--loglevel error`).
-
-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.
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`);
- }
-}
diff --git a/node_modules/opencollective-postinstall/package.json b/node_modules/opencollective-postinstall/package.json
deleted file mode 100644
index ca330991..00000000
--- a/node_modules/opencollective-postinstall/package.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "opencollective-postinstall",
- "version": "2.0.3",
- "description": "Lightweight npm postinstall message to invite people to donate to your collective",
- "main": "index.js",
- "scripts": {
- "test": "jest"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/opencollective/opencollective-postinstall.git"
- },
- "files": [
- "index.js"
- ],
- "bin": "index.js",
- "keywords": [
- "opencollective",
- "donation",
- "funding",
- "sustain"
- ],
- "author": "Xavier Damman (@xdamman)",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/opencollective/opencollective-postinstall/issues"
- },
- "homepage": "https://github.com/opencollective/opencollective-postinstall#readme",
- "devDependencies": {
- "jest": "^26.0.1"
- }
-}