cconsole

simple colored console output

npm install cconsole
11 downloads in the last week
29 downloads in the last month

cconsole

Overview

Simple colored/coloured console output.

Installation

Using npm:

$ npm install cconsole

Using git:

$ git clone https://github.com/roryrjb/cconsole

API

var cconsole = require('cconsole');

cconsole('here is some {red(red)} text');

/*

  supports the following tags:

  {bold(...)}
  {italic(...)}
  {red(...)}
  {blue(...)}
  {green(...)}
  {purple(...)}
  {cyan(...)}
  {yellow(...)}
  {gray(...)}
  {bg:red(...)}
  {bg:blue(...)}
  {bg:green(...)}
  {bg:purple(...)}
  {bg:cyan(...)}
  {bg:yellow(...)}
  {bg:gray(...)}

*/

New tags:

{inverse(...)} // black on white
{underline(...)}
{grey(...)} // same as `gray` to account for different spellings
{bg:grey(...)}
npm loves you