eldargab / easy-table

Nice text table for Node.js
314 stars 31 forks source link

Feature suggestions #26

Open Berkmann18 opened 5 years ago

Berkmann18 commented 5 years ago

This is a great tool which (in my opinion) is missing:

m1nque commented 5 years ago

I agree. and one more, column size

vassudanagunta commented 4 years ago

@Berkmann18 @m1nque text aligment and column size are completely under your control by using a printer. See the How it works section of the README.

Berkmann18 commented 4 years ago

@vassudanagunta I noticed the one with padLeft but there's nothing on centre alignment. As for the other 2 I mentioned, there's still no ways.

vassudanagunta commented 4 years ago

@Berkmann18 You aren't limited to using the built-in printers. you can code your own centre alignment printer in probably 3-5 lines of code.

Three are many other table printers. This one is clearly meant to be simple and for single line rows. There's no point in complicating it when the complicated ones (i.e. not named "easy-table") already exist. There are many, at least 20 if not 50 on npmjs.com. For example: https://www.npmjs.com/package/table.

I chose easy-table precisely because I didn't want all that. I'm easy-table the way it is exists as a quality alternative to those. And I also have a feeling the author has other priorities. It's been over 2 years. It would be a lot of work for no good reason (because more fancy and complicated solutions already exist). As a simple "easy table", it isn't "missing" a thing. Of course if you disagree, it's easy enough to fork!