• Pretty-prints a "table" of cell values (each being number | string), right-aligned. Each row may be any iterator, including lazily-generated (potentially infinite) rows.

    The first argument is the printing options:

    • fillToWidth: Keep printing columns (as long as there is data) until this width is passed. If there is more data, "..." is appended.
    • numberToString: if a cell value is a number, this is used to stringify it.

    Each remaining argument provides one row for the table.

    Parameters

    • __namedParameters: {
          fillToWidth: number;
          numericToString: ((n) => string);
      }
      • fillToWidth: number
      • numericToString: ((n) => string)
          • (n): string
          • Parameters

            • n: number | bigint

            Returns string

    • rows: readonly Iterable<string | number | bigint>[]

    Returns string

Generated using TypeDoc