nodejs-colors
v1.0.19
Published
Color text in your terminal
Maintainers
Readme
NodeJS Colors
Color text in your terminal
Installation
To install, follow below:
Type the following into your NodeJS terminal or your terminal of choice.
npm install nodejs-colorsNow follow the Usage below!
Usage
// Importing NodeJS Colors
const log = require('nodejs-colors');
// Text Fonts
log.bold('Bold');
log.underline('Underline');
// Using the colors
log.magenta('Magenta');
// Backgrounds
log.bgBlue('Background Blue');
// Using the reset option
log.cyan('Cyan');
log.reset();
console.log('Back to normal!');Colors
reset
bold
underline
black
red
green
yellow
blue
magenta
cyan
whiteBackgrounds
bgBlack
bgRed
bgGreen
bgYellow
bgBlue
bgMagenta
bgCyan
bgWhite