Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'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);
}
});
startProgress(message) {
return ConsoleUI.prototype.startProgress.call(this, message || '');
},