How to use the console-ui.prototype function in console-ui

To help you get started, we’ve selected a few console-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jasonmit / nest-cli / lib / ui / index.js View on Github external
'use strict';

const colors = require('colors');
const Table = require('cli-table');
const ConsoleUI = require('console-ui');

function UI() {
  ConsoleUI.apply(this, arguments);
}

UI.prototype = Object.create(ConsoleUI.prototype);

Object.assign(UI.prototype, {
  constructor: UI,

  startProgress(message) {
    return ConsoleUI.prototype.startProgress.call(this, message || '');
  },

  color(color, string) {
    return colors[color](string);
  },

  createTable(options) {
    return new Table(options);
  }
});
github jasonmit / nest-cli / lib / ui / index.js View on Github external
startProgress(message) {
    return ConsoleUI.prototype.startProgress.call(this, message || '');
  },

console-ui

common interface for abstracting a console ui

ISC
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis