Function underlined

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

    Example

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

    Returns

    input string with underlined format.

    Parameters

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

    Returns string