Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created November 29, 2017 09:34
Show Gist options
  • Save unlocomqx/a549aca16ec3a14130af1871a7112237 to your computer and use it in GitHub Desktop.
Save unlocomqx/a549aca16ec3a14130af1871a7112237 to your computer and use it in GitHub Desktop.
const red = chalk.bold.red;
const green = chalk.bold.green;
const blue = chalk.bold.blue;
const error = console.error;
const log = console.error;
const info = console.info;
console.error = function(){
error(red.apply(console, arguments));
};
console.log = function(){
log(green.apply(console, arguments));
};
console.info = function(){
info(blue.apply(console, arguments));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment