Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 1.0.15 to 1.0.16

bin/make-pr.sh

17

lib/print.js

@@ -49,9 +49,22 @@ const execSync = require('child_process').execSync;

const printLogo = function(logotxt) {
if (!logotxt) return;
logotxt.split('\n').forEach((line) => print(line, { color: 'blue' }));
}
/**
* Only show emoji on OSx (Windows shell doesn't like them that much ¯\_(ツ)_/¯ )
* @param {*} emoji
*/
const emoji = function(emoji) {
if (process.stdout.isTTY && process.platform === 'darwin') {
return emoji;
} else {
return '';
}
}
const printFooter = function(stats) {
console.log("");
print(`Thanks for installing ${package_name} 🙏.`, { color: 'yellow' });
print(`Thanks for installing ${package_name} ${emoji('🙏')}.`, { color: 'yellow' });
print(`Please consider donating to our open collective`, { color: 'dim' });

@@ -62,3 +75,3 @@ print(`to help us maintain this package.`, { color: 'dim' });

console.log("");
print(`${chalk.bold("👉 Donate:")} ${chalk.underline(getDonateURL())}`);
print(`${chalk.bold(`${emoji('👉 ')} Donate:`)} ${chalk.underline(getDonateURL())}`);
console.log("");

@@ -65,0 +78,0 @@ }

2

package.json
{
"name": "opencollective-postinstall",
"version": "1.0.15",
"version": "1.0.16",
"description": "Prompt users to donate after they install your node module with npm install",

@@ -5,0 +5,0 @@ "main": "index.js",

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