Function dimmed

  • Takes an input string and adds the ANSI codes for dimmed text.

    Example

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

    Returns

    input string with dimmed format.

    Parameters

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

    Returns string