Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

funsole

drklrd8ISC1.0.16

This will presumably make logging to the console a little more visually appealing. Includes options for giving front and background colors. The log is suffixed with datestamp.

funsole, console, console-log, log, console.log, pretty-console

readme

This will presumably make logging to the console a little more visually appealing. Includes options for giving front and background colors. The log is suffixed with datestamp.

Usage

First require the module.

var funsole = require('funsole');

Then for the console type :

funsole.log('Hello World !');

Or,

to eliminate the headache of importing this at each module, just get this globally at your entry file (may be index.js) and you are good to go.
global['funsole'] = require('funsole');

and whereever you want to use,

funsole.log('Hello again !','yellow','red') 

For the color options, use the following syntax :

funsole.log(value,frontcolor,backgroundcolor);

For this version, the following colors are supported for each scheme.

Frontcolors :

white 
blue 
cyan 
green 
red 
purple 
brown 
lightgrey 
yellow 

Backgroundcolors :

blue
red

To use the color scheme;

funsole.log('Hello colorful world !', 'white' , 'blue' ); 

This will give blue background with white frontcolor.

Or, to just use the frontcolor ;

funsole.log('Hello colorful world !', 'yellow'); 

This will give the log in yellow colored text.