16 lines
428 B
JavaScript
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
|