1.0.0 • Published 9 years ago

fadelog v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

#fadelog

Log to stdout that will fade colours overtime

Usage

var fadelog = require('fadelog')();

fadelog("BACON!!");

This will result in something like this

example

More Advanced

The colours and the interval can be overridden

var colours = [ // An array of available colors in the color module https://www.npmjs.org/package/colors
        'green',
        'red',
        'green',
        'red',
        'green',
        'red',
        'green',
        'red'
    ],
    fadelog = require('fadelog')(colours, 500);

fadelog("Christmas!!");

example

Caveats

Multiple calls to the logger at the same time override the same line...

This can produce a cool effect but, yeah...

I will fix it at some stage.

1.0.0

9 years ago