chalk plug so that the output terminal of the word colored

1. red font so that the output terminal:

const chalk = require('chalk');
console.log(chalk.red('this is red!')

  Then run the terminal, print this is red! Is red.

 

Using this plug-in can also print the word underlined the terminal and so on.

Guess you like

Origin www.cnblogs.com/kaiqinzhang/p/11937366.html