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