View Code? Open in Web Editor
NEW
:black_medium_square: a simple javascript (browserjs / nodejs) library for drawing tables in the terminal / console, unicode supported.
Home Page: http://git.hust.cc/word-table
License: MIT License
HTML 32.17%
JavaScript 67.83%
word-table's Issues
Table cell merge use colspan, rowspan like HTML.
If do not set header, the table will do not has header line.
wt.reset()
.setHeader(['id', 'name', 'birthday'])
.appendBody([1, 'TERM_PROGRAM', '/var/folders/mm/nnjn7j4d6270gf1cxzfm8y0w0000gn/T/']);
console.log(wt.string());
Can set table width and column with like HTML table.
Set the table row align (left, right, middle
) like HTML.
The style can be:
- default (all)
- basic (no vertical lines, but has borders)
- tiny (no vertical lines and borders)