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: 3 months ago
JSON representation
The Rust port of the tiniest and the fastest library for terminal output formatting with ANSI colors.
- Host: GitHub
- URL: https://github.com/sooniter/picocolors_rs
- Owner: SoonIter
- License: mit
- Created: 2023-01-21T13:29:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T14:15:29.000Z (over 1 year ago)
- Last Synced: 2025-04-23T01:55:31.049Z (3 months ago)
- Topics: ansi, cli, picocolors, rust, terminal
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# picocolors
rust port of [picocolors](https://github.com/alexeyraspopov/picocolors)
[](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"));
}
```