You can see below the API reference of this module.
- Boolean
setStringProto
: Iftrue
, the prototype of String class will be modified. - String|Array
fg
: An optional foreground color.
-
String|Object The colored string if the
fg
argument was provided or an object containing the following methods: -
proto
-
toString
-
fg
-
bg
-
bold
-
italic
-
underline
-
inverse
-
strike
Converts the internal object into string.
- String Stringifies the couleurs internal data using ANSI styles.
Modifies the String
prototype to contain the Couleurs
methods.