Skip to content

The Rust port of the tiniest and the fastest library for terminal output formatting with ANSI colors.

License

Notifications You must be signed in to change notification settings

SoonIter/picocolors_rs

Repository files navigation

picocolors

rust port of picocolors

crates-io

use picocolors::{bg_black, bold, formatter};
fn main() {
  println!("hello {}", bold(bg_black("world")));

  let custom_blue = formatter("\x1b[34m", "\x1b[39m");
  println!("hello {}", custom_blue("world"));
}

About

The Rust port of the tiniest and the fastest library for terminal output formatting with ANSI colors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published