Socket
Socket
Sign inDemoInstall

opencollective-postinstall

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.0.1

.vscode/settings.json

28

bin/opencollective-postinstall.js
#!/usr/bin/env node
const SHOW_LOGO = (process.argv.indexOf('--no-logo') === -1);

@@ -6,5 +7,2 @@ const fs = require('fs');

const { padding, print } = require('../lib/utils');
const logofilepath = './src/assets/logo.txt';
const logo = fs.readFileSync('./src/assets/logo.txt','utf8');
const {

@@ -65,11 +63,17 @@ npm_package_name,

var lineReader = require('readline').createInterface({
input: require('fs').createReadStream(logofilepath)
});
if (SHOW_LOGO) {
const logofilepath = './src/assets/logo.txt';
const logo = fs.readFileSync('./src/assets/logo.txt','utf8');
var lineReader = require('readline').createInterface({
input: require('fs').createReadStream(logofilepath)
});
console.log("");
lineReader.on('line', function (line) {
print(line, { color: 'blue'} );
});
console.log("");
lineReader.on('line', function (line) {
print(line, { color: 'blue'} );
});
lineReader.on('close', footer);
lineReader.on('close', footer);
}
else {
footer();
}
{
"name": "opencollective-postinstall",
"version": "1.0.0",
"version": "1.0.1",
"description": "Add OpenCollective as a dependency to prompt users to donate after npm install",

@@ -27,3 +27,7 @@ "main": "index.js",

"keywords": [
"opencollective", "donate", "donation", "fundoss", "npm"
"opencollective",
"donate",
"donation",
"fundoss",
"npm"
],

@@ -30,0 +34,0 @@ "author": "Xavier Damman <@xdamman>",

@@ -19,3 +19,3 @@ # opencollective-postinstall

"scripts": {
"postinstall": "./bin/opencollective-postinstall"
"postinstall": "./bin/opencollective-postinstall [--no-logo]" // if you pass --no-logo, we won't show the Open Collective logo
},

@@ -22,0 +22,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