gajus / table

Formats data into a string table.
Other
893 stars 77 forks source link

(Question) auto adjust width #221

Open U-siro opened 1 year ago

U-siro commented 1 year ago

is there way to set total width of table on this module? https://github.com/gajus/table

I found way to set width per column, but what I want is auto-adjust column by its content length. I think that feature is already exists, but It forces to console's width, no adjustable options.

image

n1 text should on left, and n2 text should on right.

nam-hle commented 1 year ago

I'm not sure about your request. What do you means when saying: "auto-adjust column by its content length"?

nicosampler commented 9 months ago

I suppose she means setting the maximum width of the table.