Expand description
§colorline
Minimal text coloring in Rust for terminals.
colorline provides a simple trait, Style, that adds methods
like .red(), .blue(), or .bold() directly to strings. It is
designed to stay minimal and easy to use, without extra features or
complexity.
§Supported styles
- Red
- Green
- Yellow
- Blue
- Magenta
- Cyan
- Bold
§Example
use colorline::Style;
fn main() {
println!("{}", "Error".red().bold());
println!("{}", "Success".green());
println!("{}", "Note".cyan());
}