Function foregroundWhite

  • Takes an input string and adds the ANSI codes for white foreground.

    Example

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

    Returns

    input string with white foreground.

    Parameters

    • input: string | Readonly<TemplateStringsArray>
    • Rest ...expressions: ReadOnlyArray<unknown>

    Returns string