UNPKG

ircgrampp

Version:

IRCGram++ is a complexly simple Telegram <-> IRC Gateway

39 lines (35 loc) 827 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _cliTable = _interopRequireDefault(require("cli-table")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _default(head, content = []) { let table = new _cliTable.default({ head, 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': ' ' }, style: { 'padding-left': 0, 'padding-right': 0 } }); content.forEach(r => table.push(r)); return table; }