txtcolor
v1.0.0
Published
Add background and foreground color to text
Downloads
7
Maintainers
Readme
txtColor
Description
A small package to change the background and foreground color of text
Installation
npm i txtcolorUsage
require the package and access its properties. Background colors are denoted by a bg preceding the color and foreground colors are denoted by a fg in the same manner.
const txtColor = require('txtcolor')
console.log(txtColor.fgRed, "This is some red text!", txtColor.Reset)
console.log(txtColor.fgGreen, "This is some green text!", txtColor.Reset)