Colorizer helps adding colors to strings written to the terminal.
Usage
Colorizer helps styling the strings before printing them to the terminal. You
can change the text color, the text background and the text style. Colorizer
works by extending String struct to add styling to it.
To change the text color, use either string.f or string.foreground:
Colorizer 🎨
Colorizer helps adding colors to strings written to the terminal.
Usage
Colorizer helps styling the strings before printing them to the terminal. You can change the text color, the text background and the text style. Colorizer works by extending
String
struct to add styling to it.To change the text color, use either
string.f
orstring.foreground
:To change the text background color, use either
string.b
orstring.background
:To change the text background style, use either
string.s
orstring.style
:You can compose foreground, background, and style:
Installation
Swift Package Manager
License
MIT