opencollective-postinstall
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21008
11
359
4