chalk npmjs code example
Example 1: npm chalk
const chalk = require('chalk'); console.log(chalk.blue('Hello world!'));
Example 2: chalk npm
const chalk = require('chalk'); const error = chalk.bold.red;const warning = chalk.keyword('orange'); console.log(error('Error!'));console.log(warning('Warning!'));