Function backgroundCyan

  • Takes an input string and adds the ANSI codes for cyan background.

    Example

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

    Returns

    input string with cyan background.

    Parameters

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

    Returns string