Function padRight

  • Pad a string to the given size on the right.

    Parameters

    Returns string

    The padded string.

  • Pad a string to the given width on the right.

    Parameters

    • string: string

      The string to pad.

    • width: number

      The target width of the padded string.

    • Optional padder: string

      The padder to pad the string with.

    • Optional sizer: Sizer

      Handler for unrendered characters.

    • Optional color: StringTransformer

    Returns string

    The padded string.