Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sooniter/picocolors_rs
- Owner: SoonIter
- License: mit
- Created: 2023-01-21T13:29:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T14:15:29.000Z (10 months ago)
- Last Synced: 2024-10-03T09:25:57.961Z (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)
[![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"));
}
```