UNPKG

syntax-cli-prog

Version:

Syntactic analysis toolkit, language agnostic parsers generator.

32 lines (24 loc) 1.33 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _cliTable = require('cli-table3'); var _cliTable2 = _interopRequireDefault(_cliTable); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * The MIT License (MIT) * Copyright (c) 2015-present Dmitry Soshnikov <dmitry.soshnikov@gmail.com> */ /** * Wrapper class over `cli-table3` with default options preset. */ var TablePrinter = function TablePrinter(options) { _classCallCheck(this, TablePrinter); return new _cliTable2.default(Object.assign({}, options, { style: { head: ['blue'], border: ['gray'] } })); }; exports.default = TablePrinter;