Takes an input string and adds the ANSI codes for italic text.
input
italic("Vangware"); // "\x1b[3mVangware\x1b[23m"// It can also be used as a tag function for tagged templates:italic`Vangware`; // "\x1b[3mVangware\x1b[23m"
input string with italic format.
Rest
Takes an
input
string and adds the ANSI codes for italic text.Example
Returns
input
string with italic format.