KSXGitHub / strip-ansi-cli

Strip ANSI escape sequences from text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strip-ansi-cli

Test Crates.io Version

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

  1. Make sure to have cargo and rustc installed. If not, you may install it using rustup.

  2. Clone this repository.

  3. Run cargo build --release --locked in the repo root.

  4. 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.

cargo install strip-ansi-cli
yay -S strip-ansi
yay -Ss strip-ansi-bin

License

MIT © Hoàng Văn Khải

About

Strip ANSI escape sequences from text

License:MIT License


Languages

Language:Shell 36.7%Language:Python 32.8%Language:Rust 15.8%Language:PowerShell 9.9%Language:Elvish 4.9%