Function backgroundYellow

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

    Example

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

    Returns

    input string with yellow background.

    Parameters

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

    Returns string