Registry / utility / ansi-str

ansi-str

JSON →
library0.9.0rscratesunverified

A library which provides a set of methods to work with ANSI strings

# Cargo.toml [dependencies] ansi-str = "0.9.0"
INSTALL
IMPORT
SIG · ANSI-STR
A
ansi-str
utilityrustv0.9.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.

AnsiStr
use ansi_str::AnsiStr;

Strips ANSI escape codes from a string.

use ansi_str::AnsiStr; fn main() { let s = "\x1b[31mHello\x1b[0m"; let stripped = s.strip_ansi(); println!("Stripped: {}", stripped); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
2
Resources
ansi-str — cargo add ansi-str · libregistry