Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 730 Bytes

DOCUMENTATION.md

File metadata and controls

33 lines (23 loc) · 730 Bytes

Documentation

You can see below the API reference of this module.

Couleurs(setStringProto, fg)

Params

  • Boolean setStringProto: If true, the prototype of String class will be modified.
  • String|Array fg: An optional foreground color.

Return

  • 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

toString()

Converts the internal object into string.

Return

  • String Stringifies the couleurs internal data using ANSI styles.

proto()

Modifies the String prototype to contain the Couleurs methods.