Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sooniter/picocolors_rs

The Rust port of the tiniest and the fastest library for terminal output formatting with ANSI colors.
https://github.com/sooniter/picocolors_rs

ansi cli picocolors rust terminal

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# picocolors

rust port of [picocolors](https://github.com/alexeyraspopov/picocolors)

[![crates-io](https://badgen.net/crates/v/picocolors_rs)](https://crates.io/crates/picocolors)

```rust
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"));
}
```