Crates.io | termcol |
lib.rs | termcol |
version | 0.1.1 |
source | src |
created_at | 2022-05-20 17:54:44.430361 |
updated_at | 2022-05-20 20:30:08.444819 |
description | Dependency-less library for simple terminal text coloring and formating |
homepage | https://github.com/Ernest1338/termcol |
repository | https://github.com/Ernest1338/termcol |
max_upload_size | |
id | 590401 |
size | 16,926 |
Dependency-less library for simple terminal text coloring and formating
Basic usage (checkout the examples/usage.rs file for more information)
use termcol::*;
fn main() {
println!("{}red{}", color("red"), color("reset"));
println!("{}bold{}", format("bold"), format("reset"));
println!("{}", color_string("im blue", "blue"));
}
This project is distributed under MIT license.