2 unstable releases
0.1.0 | Dec 25, 2020 |
---|---|
0.0.0 | Sep 11, 2020 |
#3 in #strip-ansi
22 downloads per month
6KB
56 lines
strip-ansi-cli
Strip ANSI escape sequences from text.
Usage
Stdin as input
ls --color=always | strip-ansi
Argument as input
strip-ansi "$(ls --color=always)"
Print help message
strip-ansi --help
Installation
Manually build from source
-
Make sure to have
cargo
andrustc
installed. If not, you may install it using rustup. -
Clone this repository.
-
Run
cargo build --release --locked
in the repo root. -
The binary should be created at
$REPO_DIR/target/release/strip-ansi
.
Manually download prebuilt binary
Go to the Release Page and find file whose name contains strip-ansi
and your platform name.
From Crates.io
cargo install strip-ansi-cli
From the Arch User Repository
Build from source
yay -S strip-ansi
Prebuilt binary
yay -Ss strip-ansi-bin
License
Dependencies
~3MB
~54K SLoC