Interface PadOptions

Options for pad functions.

interface PadOptions {
    color?: StringTransformer;
    padder?: string;
    sizer?: Sizer;
    string: string;
    width: number;
}

Hierarchy (view full)

Properties

A custom function for adding color codes (or any non-rendered element) to the padding.

padder?: string

The string to use as a padder.

sizer?: Sizer

A custom function for determing the size of the provided string.

string: string

The string to pad.

width: number

The desired width of the string.