habits-cli
Version:
The habits application seeks to help individuals build up healthy habits.
45 lines (44 loc) • 1.49 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.table = void 0;
var cli_table3_1 = __importDefault(require("cli-table3"));
var create = function (options) {
return new cli_table3_1.default(__assign({ style: { border: [], head: ["cyan"] }, wordWrap: true }, options));
};
var createCompact = function (options) {
return create(__assign({ chars: {
top: "",
"top-mid": "",
"top-left": "",
"top-right": "",
bottom: "",
"bottom-mid": "",
"bottom-left": "",
"bottom-right": "",
left: "",
"left-mid": "",
mid: "",
"mid-mid": "",
right: "",
"right-mid": "",
middle: " ",
} }, options));
};
var print = function (table) {
console.log(table.toString());
};
exports.table = { create: create, createCompact: createCompact, print: print };