Closed hunkjazz closed 4 years ago
OK... This project seems to be abandoned. I'll be using cliui
.
Your code sample was turning each array into a gigantic string. You needed to put each item from each array into a colume like this:
var outputBuffer = new LineBuffer({
x: 0,
y: 0,
width: 'console',
height: 'console'
});
for(var i = 0; i < foo.length; i++)
{
line = new Line(outputBuffer)
.column(foo[i], 40)
.column(bar[i], 40)
.fill()
.store();
}
outputBuffer.output();
What I tried, with no success:
Printed content is either trimmed or mixed.