You can see below the API reference of this module.
Creates a new ColorIt
instance.
Available methods:
turquoise
emerland
peterRiver
amethyst
wetAsphalt
greenSea
nephritis
belizeHole
wisteria
midnightBlue
sunFlower
carrot
alizarin
clouds
concrete
orange
pumpkin
pomegranate
silver
asbestos
Also, the following methods are aliased, for convenience:
red
➡️alizarin
yellow
➡️sunFlower
green
➡️emerland
blue
➡️peterRiver
purple
➡️amethyst
indigo
➡️wisteria
gray
➡️concrete
If you need to change the background color, add the Bg
suffix to the
method name (e.g. orange
is for foreground, orangeBg
is for
background).
- String
text
: The text to color.
- ColorIt The
ColorIt
instance.
Convert the data to string (this can be called either manually or internally
just by concatenating the ColorIt
instance with another string).
- String Stringifies the data using ANSI styles.