deBhal / flickerlog

Re-write node stdout for progress updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flickerlog

Re-write node stdout for updating progress updates etc:

	var flickerlog = require( 'flickerlog' ),
	    flicker = flickerlog.flicker,
	    log = flickerlog.log;

	flicker( 'flickerlog.flicker prints strings that get overwritten' );
	setTimeout( function() {
	    		log( 'flickerlog.log prints strings normally' );
	}, 1000 );

looks like:

example

Note: If you mix flicker() and console.log(), you're gonna have a bad time.

About

Re-write node stdout for progress updates


Languages

Language:JavaScript 100.0%