You can see below the API reference of this module.
Creates a new instance of LeTable
.
- Object
options
: An object containing the table configuration:cell
: object containinghAlign
(default:"center"
): One of the following values:"left"
,"center"
and"right"
vAlign
(default:"middle"
): One of the following values:"top"
,"middle"
and"bottom"
autoEOL
(default:true
): if true, the lines are wrapped inside of the cellstretch
(default:true
): if true, the size of the box will not be fixed
marks
: object containing the mark characters (see example)noAnsi
(Boolean): If you want to disable ANSI characters in the output.
- LeTable The
LeTable
instance.
Adds a new row in table.
- Array
columns
: Row data (as array) - Object
ops
: Options for cell content
- LeTable The
LeTable
instance.
Stringifies the table.
- String The stringified table