| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x 1x | /**
* @description - output welcome info
* @author - huang.jian <hjj491229492@hotmail.com>
*/
/* eslint-disable no-console */
const chalk = require('chalk');
const figlet = require('figlet');
/**
* @param {boolean} display
*/
function welcome(display) {
if (display) {
const content = figlet.textSync('Coco', {
font: 'Ghost',
horizontalLayout: 'default',
verticalLayout: 'default'
});
console.log(chalk.cyan(content));
console.log();
}
}
module.exports = welcome;
|