opencollective-postinstall
Advanced tools
Comparing version 1.0.0 to 1.0.1
#!/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 @@ ... |
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
8143
8
97