colorfully

Crates.iocolorfully
lib.rscolorfully
version0.2.2
sourcesrc
created_at2023-03-25 01:29:43.869407
updated_at2023-03-25 02:01:07.949724
descriptionyour terminal colorfully!
homepage
repositoryhttps://github.com/5-23/colorfully-rs/
max_upload_size
id819839
size24,653
Asta(아스타) (P-Asta)

documentation

README

colorfully-rs

your terminal colorfully!

use colorfully::*;
fn main() {
    println!("{}",  "black".reset().bold());
    println!("{}",    "red".red());
    println!("{}",  "green".green().under_line());
    println!("{}", "yellow".yellow());
    println!("{}",   "blue".blue().light());
    println!("{}",   "cyan".cyan());
    println!("{}", "purple".purple().italic());
    println!("{}",   "gray".gray());

    println!();

    println!("{}",  "back ground black".bg_black().bold());
    println!("{}",    "back ground red".bg_red());
    println!("{}",  "back ground green".bg_green().under_line());
    println!("{}", "back ground yellow".bg_yellow());
    println!("{}",   "back ground blue".bg_blue().light());
    println!("{}",   "back ground cyan".bg_cyan());
    println!("{}", "back ground purple".bg_purple().italic());
    println!("{}",   "back ground gray".bg_gray());

}

use

$cargo add colorfully
Commit count: 5

cargo fmt