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

```rust 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.