Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 943 Bytes

README.md

File metadata and controls

55 lines (42 loc) · 943 Bytes

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