0

I have some console output (on Jenkins) and the table results get mangled because they are too wide. These tables are written to the console, each with a single console.log() call, because the tables are just formatted strings with newline and tab characters, that's all.

Here is a visual of the problem:

enter image description here

When writing this table to the console, is there a way to temporarily change the font size?

Something like:

require('tty').fontSize(5);
console.log(myTableString);
require('tty').fontSize(10);

something like that?

StephenKing
  • 36,187
  • 11
  • 83
  • 112
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817

0 Answers0