Chalk
Definitions
Returns the string s
with background color of the default black color.
Returns the string s
with background color of the default black color.
Returns the string s
with background color of the default blue color.
Returns the string s
with background color of the default blue color.
Returns the string s
with background color of the default cyan color.
Returns the string s
with background color of the default cyan color.
Returns the string s
with background color of the default green color.
Returns the string s
with background color of the default green color.
Returns the string s
with background color of the default magenta color.
Returns the string s
with background color of the default magenta color.
Returns the string s
with background color of the default red color.
Returns the string s
with background color of the default red color.
Returns the string s
with background color of the default white color.
Returns the string s
with background color of the default white color.
Returns the string s
with background color of the default yellow color.
Returns the string s
with background color of the default yellow color.
Returns the string s
formatted with the default black color.
Returns the string s
formatted with the default bright black color.
Returns the string s
formatted with the default blue color.
Returns the string s
formatted with the default bright blue color.
A port of the popular Chalk library: https://github.com/chalk/chalk
Returns s
formatted as bold.
Returns the string s
formatted with the default cyan color.
Returns the string s
formatted with the default bright cyan color.
Returns the string s
formatted with the default green color.
Returns the string s
formatted with the default bright green color.
Returns s
formatted with color hexCode
or if there's an error, returns the original string.
Expected format of hexCode
: "#" + "--" + "--" + "--"
where each -- is a hex number between 00 and FF.
Returns the string s
formatted with the default magenta color.
Returns the string s
formatted with the default bright magenta color.
Returns the string s
formatted with the default red color.
Returns the string s
formatted with the default bright red color.
def reset(): String
SourceReturns the reset control sequence as a string.
def rgb(c: (Int32, Int32, Int32), s: String, opts: { isFg = Bool }): String
SourceReturns the string s
formatted with the given RGB color c
.
Returns the string s
formatted with the default white color.
Returns the string s
formatted with the default bright white color.
Returns the string s
formatted with the default yellow color.