peter 0.2.1

ANSI terminal colours and styles for anything implementing `Display`
Documentation

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.