smartdebug/ts/index.js
Philipp Kunz e6277a8c13 initial
2015-11-15 20:35:13 +01:00

16 lines
428 B
JavaScript

/// <reference path="typings/tsd.d.ts" />
var beautylog = require("beautylog");
var colors = require("colors");
var debugActive = false;
var debugsmart = {
log: function (message) {
if (debugActive) {
beautylog.log("Debug:".zebra + ' ' + message);
}
},
activate: function (debugArg) {
debugActive = debugArg;
}
};
module.exports = debugsmart;
//# sourceMappingURL=index.js.map