Function foregroundBrightRed

  • Bright red foreground code wrapper.

    Remarks

    Given an input string, it will return a new string with the ANSI codes for bright red foreground.

    Example

    foregroundBrightRed("Vangware"); // "\x1b[91mVangware\x1b[39m"
    // It can also be used as a tag function for tagged templates:
    foregroundBrightRed`Vangware`; // "\x1b[91mVangware\x1b[39m"

    See

    Type Parameters

    • Input extends string | TemplateStringsArray

    Parameters

    • input: Input
    • Rest ...expressions: ReadOnlyArray

    Returns `${Input extends string
        ? Input
        : string}`

    input string with bright red foreground.