UNPKG

haxjs

Version:

haxball headless api written in typescript

25 lines 914 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Logger = void 0; var chalk_1 = __importDefault(require("chalk")); var Logger = (function () { function Logger() { } Logger.begin = function (message) { this.lastMessage = message; process.stderr.write(chalk_1.default.yellow('\u001B[?25lIN PROGRESS ') + message); }; Logger.end = function (failed) { if (failed === void 0) { failed = false; } process.stderr.cursorTo(0); process.stderr.write((failed ? chalk_1.default.red('FAILED ') : chalk_1.default.green('DONE ')) + this.lastMessage + ' \n\u001B[?25h'); }; return Logger; }()); exports.Logger = Logger; //# sourceMappingURL=logger.js.map