peter

Crates.iopeter
lib.rspeter
version0.2.1
sourcesrc
created_at2021-02-19 12:40:04.663803
updated_at2021-04-01 13:58:07.902393
descriptionANSI terminal colours and styles for anything implementing `Display`
homepage
repositoryhttps://github.com/rossmacarthur/peter
max_upload_size
id357548
size19,396
Ross MacArthur (rossmacarthur)

documentation

README

peter

Crates.io Version Docs.rs Latest

Peter builds on the ansi_term crate to allow styling of anything implementing Display and makes colorizing text less verbose to use by providing the Stylize trait.

Getting started

use peter::Stylize;

println!("This is in red: {}", "a red string".red());

println!("How about some {}?", "bold and underline".bold().underline());

License

Licensed under either of

at your option.

Commit count: 14

cargo fmt