7 releases
Uses old Rust 2015
0.1.6 | Jun 17, 2018 |
---|---|
0.1.5 | Jun 17, 2018 |
#63 in #hello
Used in hunter
4KB
parse-ansi
Parse ANSI escape codes (colors, underlines, etc.)
lib.rs
:
Parse ANSI escape codes (colors, underlines, etc.)
extern crate parse_ansi;
assert_eq!(
parse_ansi::ANSI_REGEX.replace_all(
b"Hello, \x1b[42mworld\x1b[0m!",
b"" as &[u8],
),
b"Hello, world!" as &[u8],
);
Dependencies
~2.2–3MB
~54K SLoC