Function italic

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

    Example

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

    Returns

    input string with italic format.

    Parameters

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

    Returns string