Using `@effect/printer-ansi` for Dynamic Column Widths in Tables

I'm looking to use @effect/printer-ansi to pretty print table information (basically information about the status of some instances, with like status, uptime etc.) kind of like nvidia-smi

Does anyone know how I get the columns to work so that the longest entry defines the width of the column, like this;

instance name           | status | ..other
short-name                online   -----
this-name-defines-width   online   -----


if that makes sense?
Was this page helpful?