Interface PadWithSideOptions

Options for pad shortcut function.

interface PadWithSideOptions {
    color?: StringTransformer;
    padder?: string;
    side: PAD_SIDE;
    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.

side: PAD_SIDE

The side to add padding.

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.