Files
nexe/node_modules/celeri/examples/table2.js
T
2011-11-26 17:00:12 -06:00

29 lines
531 B
JavaScript

var celery = require('../lib');
var objects = [ { name: 'bean.cupboard.scaffold',
hasUpdates: '',
published: 'published: 2 hours agofdsfsafsfadffdsf afsd fasf as fsd fsdf sdf sdf sd ' },
{ name: 'teamdigest',
hasUpdates: '',
published: 'published: 2 hours ago' }];
console.log(celery.columns())
celery.drawTable(objects, {
columns: [{
width: 15,
minWidth:20,
name: 'name'
},
{
name: 'published',
width:15,
align:'right'
}],
horz: ' ',
vert: '|'
});
celery.open();