Crates.io | tiny-ansi |
lib.rs | tiny-ansi |
version | 0.1.0 |
source | src |
created_at | 2022-07-25 17:01:10.798548 |
updated_at | 2022-07-25 17:01:10.798548 |
description | TinyAnsi is a dead simple library that allows basic coloring of terminal characters. |
homepage | |
repository | https://github.com/NaokiM03/tiny-ansi-rs |
max_upload_size | |
id | 632693 |
size | 11,290 |
TinyAnsi is a dead simple library that allows basic coloring of terminal characters.
There are many crates for the ansi terminal that have been created and abandoned, but none of them solve the following problem. If that is the case, I do not need complex functionality, so I built the library on a scale such that the code can be read at a glance. https://github.com/jam1garner/owo-colors/issues/45
# Cargo.toml
[dependencies]
tiny-ansi = "0.1.0"
use tiny_ansi::TinyAnsi;
println!("{}", "red".red());
println!(
"{}",
"bold italic red on green".bold().italic().red().on_green()
);
tiny-ansi is released under the MIT License