Created
November 29, 2017 09:34
-
-
Save unlocomqx/a549aca16ec3a14130af1871a7112237 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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