cliui
Last updated
Was this helpful?
Last updated
Was this helpful?
easily create complex multi-column command-line-interfaces.
cliui exposes a simple layout DSL:
If you create a single ui.row
, passing a string rather than an object:
\n
: characters will be interpreted as new rows.
\t
: characters will be interpreted as new columns.
: characters will be interpreted as padding.
as an example...
will output:
Specify the maximum width of the UI being generated.
Enable or disable the wrapping of text in a column.
Create a row with any number of columns, a column can either be a string, or an object with the following options:
width: the width of a column.
align: alignment, right
or center
.
padding: [top, right, bottom, left]
.
Similar to div
, except the next row will be appended without a new line being created.