/console-chalk

TL;DR console.log but with colours

Primary LanguageJavaScript

console-chalk

console example

This is simple wrapper around chalk for console logging but with colours. Intended as replacement for console.log console.warn etc.

TL;DR
console.log but with colours

Usage

var logger = require('console-chalk');

// Replacement for standard console logging functions
logger.log('log');
logger.info('info', 'log');
logger.debug('debug');
logger.warn('warn', 'some warning!');
logger.error('error', { error: 'catastrophic failure!' });

// Bonus stuff
logger.success('example script finished succesfully.')