color-in-terminal
v1.0.5
Published
Color in terminal
Downloads
35
Maintainers
Readme
Deployment
To deploy this project run
npm i color-in-terminal
Demo
Usage/Examples
const { Color } = require('color-in-terminal')
console.log(`${Color.Underscore}${Color.FgCyan}Task:${Color.Reset}${Color.FgGreen} Ok for today !${Color.Reset}`);
Output :
Documentation
const { Color } = require('color-in-terminal')
console.log(`
${Color.Bright}Bright${Color.Reset}
${Color.Dim}Dim${Color.Reset}
${Color.Underscore}Underscore${Color.Reset}
${Color.Blink}Blink${Color.Reset}
${Color.Reverse}Reverse${Color.Reset}
${Color.Hidden}Hidden${Color.Reset}
`)
// 'Fg' prefix for foreground
console.log(`
${Color.FgBlack}FgBlack${Color.Reset}
${Color.FgRed}FgRed${Color.Reset}
${Color.FgGreen}FgGreen${Color.Reset}
${Color.FgYellow}FgYellow${Color.Reset}
${Color.FgBlue}FgBlue${Color.Reset}
${Color.FgMagenta}FgMagenta${Color.Reset}
${Color.FgCyan}FgCyan${Color.Reset}
${Color.FgWhite}FgWhite${Color.Reset}
`)
// 'Bg' prefix for background
console.log(`
${Color.BgBlack}BgBlack${Color.Reset}
${Color.BgRed}BgRed${Color.Reset}
${Color.BgGreen}BgGreen${Color.Reset}
${Color.BgYellow}BgYellow${Color.Reset}
${Color.BgBlue}BgBlue${Color.Reset}
${Color.BgMagenta}BgMagenta${Color.Reset}
${Color.BgCyan}BgCyan${Color.Reset}
${Color.BgWhite}BgWhite${Color.Reset}
`)