Function foregroundMagenta

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

    Example

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

    Returns

    input string with magenta foreground.

    Parameters

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

    Returns string