smartdebug/ts/index.js

16 lines
428 B
JavaScript
Raw Permalink Normal View History

2015-11-15 19:35:13 +00:00
/// <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