@contaquanto/qlog
Version:
quanto logging tool
13 lines (12 loc) • 677 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var chalk_1 = require("chalk");
var LogLevel_1 = require("../LogLevel");
exports.getColorScheme = function (category) { return LogLevel_1.LevelColors[category]; };
exports.boldify = function (content) { return chalk_1.default.bold(content); };
exports.whitefy = function (content) { return chalk_1.default.whiteBright(content); };
exports.grayfy = function (content) { return chalk_1.default.gray(content); };
exports.stripColors = function (str) { return str.replace(/\x1B\[\d+m/g, ''); };
exports.colorizeLog = function (content, colorScheme) {
return chalk_1.default[colorScheme](content);
};