Skip to content

Latest commit

 

History

History

chalk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

image


Install

$ npm install chalk

Simple Usage

→ 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 image

Styles

Some basics Colors

  • black
  • red
  • green
  • yellow
  • blue
  • cyan
  • white
  • redBright
  • greenBright
  • yellowBright
  • blueBright
  • whiteBright

Some basics Background colors

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgCyan
  • bgWhite
  • bgRedBright
  • bgGreenBright
  • bgCyanBright
  • bgWhiteBright