rust-colors 0.2.1

A library for parsing ANSI Strings to colors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rust_colors::{Ansi, Color, Colors};

fn main() {
    let colors = Ansi;

    println!(
        "The sky is {}, apples can be {}, do you like to touch {} grass?",
        colors.color("blue", Colors::Blue),
        colors.bold_color("red", Colors::Red),
        colors.underline_color("green", Colors::Green),
    );
}