$ npm install chalk
→ Chalk comes with an easy to use composable API where you just chain and nest the styles you want.
const chalk = require('chalk');
console.log(chalk.blue('Hello world!'));
→ if we use chalk module then our terminal look like this
black
red
green
yellow
blue
cyan
white
redBright
greenBright
yellowBright
blueBright
whiteBright
bgBlack
bgRed
bgGreen
bgYellow
bgBlue
bgCyan
bgWhite
bgRedBright
bgGreenBright
bgCyanBright
bgWhiteBright