Function backgroundYellow

  • Yellow background code wrapper.

    Remarks

    Given an input string, it will return a new string with the ANSI codes for yellow background around it.

    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"

    See

    Type Parameters

    • Input extends string | TemplateStringsArray

    Parameters

    • input: Input
    • Rest ...expressions: ReadOnlyArray

    Returns `${Input extends string
        ? Input
        : string}`

    input string with yellow background.