Takes an input string and adds the ANSI codes for red foreground.
input
foregroundRed("Vangware"); // "\x1b[31mVangware\x1b[39m"// It can also be used as a tag function for tagged templates:foregroundRed`Vangware`; // "\x1b[31mVangware\x1b[39m"
input string with red foreground.
Rest
Takes an
input
string and adds the ANSI codes for red foreground.Example
Returns
input
string with red foreground.