旧版报表、仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
694 B

/* eslint-disable no-console */
function isTrue(value) {
return !!value && value !== '0' && value !== 'false';
}
const envDisable = isTrue(process.env.CI);
const logLevel = process.env.npm_config_loglevel;
const logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1;
if (!envDisable && !logLevelDisplay) {
const green = '\u001b[32m';
const white = '\u001b[22m\u001b[39m';
const boldCyan = '\u001b[96m\u001b[1m';
const reset = '\u001b[0m';
const output =
green +
'Have some ❤️ for fetch-mock? Why not donate to my charity of choice:' +
white +
'\n > ' +
boldCyan +
'https://www.justgiving.com/refugee-support-europe\n' +
reset;
console.log(output);
}