exchalk v1.0.0 ExChalk
Provides a simple interface to text color and styling.
ExChalk exposes three APIs: colors, background colors, and modifiers.
Colors
ExChalk.color_name(text) will color text with color_name color.
Supported colors are:
blackredgreenyellowbluemagentacyanwhitegray
Example: ExChalk.red("Hello!")
Background colors
ExChalk.bg_color_name(text) will color text with bg_color_name
background color.
Supported background colors are:
bg_blackbg_redbg_greenbg_yellowbg_bluebg_magentabg_cyanbg_white
Example: ExChalk.bg_red("Hello!")
Modifiers
ExChalk.modifier(text) will style text with a given modifier.
Supported modifiers are:
resetbolddimitalicunderlineinversehiddenstrikethrough
Example: ExChalk.italic("Hello!")