Skip to content

Instantly share code, notes, and snippets.

@rendarz
Created June 23, 2017 08:08
Show Gist options
  • Save rendarz/7eb455875bbb247d92a36f6a38309996 to your computer and use it in GitHub Desktop.
Save rendarz/7eb455875bbb247d92a36f6a38309996 to your computer and use it in GitHub Desktop.
//////////////////
// 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