Created
June 23, 2017 08:08
-
-
Save rendarz/7eb455875bbb247d92a36f6a38309996 to your computer and use it in GitHub Desktop.
This file contains 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
////////////////// | |
// Requirements // | |
////////////////// | |
var chalk = require('chalk'); | |
///////////////////// | |
// Debug Functions // | |
///////////////////// | |
dbg = function(text, values = '') | |
{ | |
return console.log(chalk.magenta('[CK/DEBG] ' + text, values)); | |
}; | |
ok = function(text, values = '') | |
{ | |
return console.log(chalk.green('[CK/SUCC] ' + text, values)); | |
}; | |
err = function(text, values = '') | |
{ | |
return console.error(chalk.red('[CK/ERRR] ' + text, values)); | |
}; | |
warn = function (text, values = '') | |
{ | |
return console.log(chalk.blue('[CK/WARN] ' + text, values)); | |
}; | |
module.exports = dbg; | |
module.exports = ok; | |
module.exports = err; | |
module.exports = warn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment