table overflows and wraps screen even with word wrapping enabled #351
Closed
Description
The table isn't being fit to my screen even when word wrapping is on
Code to reproduce:
var Table = require('cli-table3');
// instantiate
var table = new Table({
wordWrap: true,
head: ['TH 1 label', 'TH 2 label'],
colWidths: [100, 200]
});
// table is an Array, so you can `push`, `unshift`, `splice` and friends
table.push(
['First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value', 'Second value']
, ['First value', 'Second value']
);
console.log(table.toString());
related #57