require.paths.unshift(__dirname + '/../support/colors');
var Table = require('../lib/cli-table');
var table = new Table({
head: ['Rel', 'Change', 'By', 'When']
, colWidths: [6, 21, 25, 17]
});
table.push(
['v0.1', 'Testing something cool', '[email protected]', '7 minutes ago']
, ['v0.1', 'Testing something cool', '[email protected]', '8 minutes ago']
);
console.log(table.toString());
var table = new Table({
head: ['Rel', 'Change', 'By', 'When']
, colWidths: [6, 21, 25, 17]
, style : {compact : true, 'padding-left' : 1}
});
table.push(
['v0.1', 'Testing something cool', '[email protected]', '7 minutes ago']
, ['v0.1', 'Testing something cool', '[email protected]', '8 minutes ago']
, []
, ['v0.1', 'Testing something cool', '[email protected]', '8 minutes ago']
);
console.log(table.toString());