引用:https://blog.csdn.net/u013530539/article/details/79073938
1/含义
修改控制台中字符串的样式(字体样式加粗等/字体颜色/背景颜色)
2/使用
加粗+红色字+背景白色
-
const chalk = require('chalk');
-
console.log(chalk.red.bold.bgWhite('Hello World'));
-
const chalk = require('chalk');
-
console.log(chalk`{red.bold.bgWhite Hello World}`);