// use chalk to log colors code example
Example 1: chalk nodeks
const chalk = require('chalk'); console.log(chalk.blue('Hello world!'));
Example 2: how to install chalk in node js
npm install chalk
const chalk = require('chalk'); console.log(chalk.blue('Hello world!'));
npm install chalk