Render tables in text for tabular terminal fun times!
Overview
asciitable is the result of me extracting some code from another project. It can
render simple tables with headings and pretty hyphen/pipe character-based
formatting.
options - an object specifying some things about the table you want
generated. Options are optional.
data - an array of objects.
Options
fields - an array of field names you want to display. If omitted, asciitable
will try to figure out what all the fields are for all the objects in the data
array.
------------------------------------------------- | a | b | c | d |------------------------------------------------- | a | b | c | | | asddsfa | sss | zxc | | | dsgvdgsdvgssdf | x | eryty | | | m | n | o | p | | 5 | null | [object Object] | | | function (){} | | | |-------------------------------------------------