Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

color

color: Chalk & object = chalk

ivar reference to chalk as 'color'

Accessors

stream

stream:

getter for the output stream

Methods

append

  • append(...msgs: any[]): this

end

  • end(...msgs: any[]): this

grid

  • Create an aligned grid of the text matrix. Very basic for the time-being

    Parameters

    • table: IOutputGrid

      matrix of rows/cols

    • Default value spacing: TAB = TAB.TWO

      spacing between items

    Returns string

output

  • output(...msg: any[]): this

outputGrid

  • Output an aligned grid of the text matrix

    Parameters

    • table: IOutputGrid

      matrix of rows/cols

    • Default value spacing: TAB = TAB.TWO

      spacing between items

    • Default value indent: TAB = TAB.ONE

      grid indentation

    Returns Writer

outputLines

  • Print a multiline message with specified indentation

    Parameters

    • body: IOutputBody

      message to print

    • Default value tabs: TAB = TAB.TWO

      indentation tabs (1 tab = 2 spaces)

    • Default value trim: boolean = true

      whether or not to trim each line's content

    Returns Writer

outputSection

paragraph

write

  • write(...msgs: any[]): this