6 Commits

Author SHA1 Message Date
Philipp Kunz
1f09d67196 0.0.10 2015-12-02 14:01:54 +01:00
Philipp Kunz
bdf0c9b066 show Debug activated message by default 2015-12-02 14:01:47 +01:00
Philipp Kunz
1a3aa040e4 0.0.9 2015-11-28 22:48:46 +01:00
Philipp Kunz
79f97b504b small fix 2015-11-28 22:48:41 +01:00
Philipp Kunz
1d58aa38bd 0.0.8 2015-11-28 22:44:05 +01:00
Philipp Kunz
304f3801bd add smartdebug.run() function 2015-11-28 22:43:57 +01:00
3 changed files with 13 additions and 1 deletions

View File

@@ -8,8 +8,14 @@ var smartDebug = {
beautylog.log("###DEBUG:###".rainbow + ' ' + message);
}
},
run: function (functionArg) {
if (debugActive) {
functionArg();
}
},
activate: function (debugArg) {
debugActive = debugArg;
beautylog.log("#### ".rainbow + "!!! ".red + "Debugging has been activated!".blue + " !!!".red + " ####".rainbow);
},
getStatus: function () {
return debugActive;

View File

@@ -1,6 +1,6 @@
{
"name": "smartdebug",
"version": "0.0.7",
"version": "0.0.10",
"description": "debug your JavaScript the smart way",
"main": "index.js",
"scripts": {

View File

@@ -9,8 +9,14 @@ var smartDebug = {
beautylog.log("###DEBUG:###".rainbow + ' ' + message);
}
},
run: function(functionArg) {
if (debugActive) {
functionArg();
}
},
activate: function(debugArg:boolean){
debugActive = debugArg;
beautylog.log("#### ".rainbow + "!!! ".red + "Debugging has been activated!".blue + " !!!".red + " ####".rainbow);
},
getStatus: function(){
return debugActive;