1.0.0 • Published 7 years ago

rbo-screencolors v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

rbo-screencolors

Utility to easily add and remove colors printed to terminal screens. Works best with 256 color-capable xterm screens.

##Install

npm install --save rbo-screencolors

##Usage

const colors = require('rbo-screencolors').colors;

console.log(`${colors.fail}Failure Message${colors.reset}`);

##Existing color identifiers:

   colors.pass;   //defaults to Green
   colors.fail;	  //defaults to Red
   colors.info;   //defuatls to Blue
   colors.warning;  //defaults to Yellow
   colors.debug;   //defaults to orange

##Ease of use printing

const rConsole = require('rbo-screencolors').console;

rConsole.logPass('This is a nice Green message for passing');
rConsole.logFail('This messge will be Red for failure');