require.paths.unshift(__dirname + '/../support/colors');
var Table = require('../lib/cli-table');
var table = new Table({
head: ['First', 'Last', 'Email', 'Twitter']
, chars: {
'top': '-'
, 'top-mid': '-'
, 'top-left': '-'
, 'top-right': '-'
, 'bottom': '-'
, 'bottom-mid': '-'
, 'bottom-left': '-'
, 'bottom-right': '-'
, 'left': '|'
, 'left-mid': '|'
, 'mid': '-'
, 'mid-mid': '-'
, 'right': '|'
, 'right-mid': '-'
}
, colWidths: [14, 10, 25, 17]
});
table.push(
['Guillermo', 'Rauch', '[email protected]', 'rauchg']
);
console.log(table.toString());