Function foregroundGreen

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

    Example

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

    Returns

    input string with green foreground.

    Parameters

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

    Returns string