Interface ModifiersSafe

interface ModifiersSafe {
    bold: <U extends looseString | readonly looseString[]>(
        value: U,
    ) => colorize<arrJoin<U>, 1, 22>;
    inverse: <U extends looseString | readonly looseString[]>(
        value: U,
    ) => colorize<arrJoin<U>, 7, 27>;
    reset: <U extends looseString | readonly looseString[]>(
        value: U,
    ) => colorize<arrJoin<U>, 0, 0>;
    swapcolors: <U extends looseString | readonly looseString[]>(
        value: U,
    ) => colorize<arrJoin<U>, 7, 27>;
    swapColors: <U extends looseString | readonly looseString[]>(
        value: U,
    ) => colorize<arrJoin<U>, 7, 27>;
    underline: <U extends looseString | readonly looseString[]>(
        value: U,
    ) => colorize<arrJoin<U>, 4, 24>;
}

Hierarchy (View Summary)

Properties

bold: <U extends looseString | readonly looseString[]>(
    value: U,
) => colorize<arrJoin<U>, 1, 22> = ...

Renders bold font in the terminal.

inverse: <U extends looseString | readonly looseString[]>(
    value: U,
) => colorize<arrJoin<U>, 7, 27> = ...

Inverts background and foreground of the text.

reset: <U extends looseString | readonly looseString[]>(
    value: U,
) => colorize<arrJoin<U>, 0, 0> = ...

Resets all modifiers (usually not needed, kolor takes care of it).

swapcolors: <U extends looseString | readonly looseString[]>(
    value: U,
) => colorize<arrJoin<U>, 7, 27> = modifiers.inverse

An alias of modifiers.safe.inverse.

swapColors: <U extends looseString | readonly looseString[]>(
    value: U,
) => colorize<arrJoin<U>, 7, 27> = modifiers.inverse

An alias of modifiers.safe.inverse.

underline: <U extends looseString | readonly looseString[]>(
    value: U,
) => colorize<arrJoin<U>, 4, 24> = ...

Draws horizontal line below the text.