Registry / utility / owo-colors

owo-colors

JSON →
library4.3.0rscratesunverified

Zero-allocation terminal colors that'll make people go owo.

# Cargo.toml [dependencies] owo-colors = "4.3.0"
INSTALL
IMPORT
SIG · OWO-COLORS
O
owo-colors
utilityrustv4.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OwoColorize
✓ use owo_colors::OwoColorize;

Prints colored text to the terminal.

use owo_colors::OwoColorize; println!("{}", "Hello, world!".red().on_blue());
Debug
Known issues
gotchaColors may not render correctly on non-ANSI terminals.
fix
Use a crate like `supports-color` to check terminal capabilities.
affects: >=4.0.0
Upgrade
Version history
4.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
owo-colors — cargo add owo-colors · libregistry