Registry / utility / strip-ansi-escapes

strip-ansi-escapes

JSON →
library0.2.1rscratesunverified

Removes ANSI escape sequences from byte streams or strings.

# Cargo.toml [dependencies] strip-ansi-escapes = "0.2.1"
INSTALL
IMPORT
SIG · STRIP-ANSI-ESCAPES
S
strip-ansi-escapes
utilityrustv0.2.1
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.

strip
use strip_ansi_escapes::strip;

Strips ANSI escape codes from a byte slice.

use std::io::Read; let input = b"\x1b[31mHello\x1b[0m"; let cleaned = strip_ansi_escapes::strip(input).unwrap();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
strip-ansi-escapes — cargo add strip-ansi-escapes · libregistry