strip-ansi-cli

Crates.iostrip-ansi-cli
lib.rsstrip-ansi-cli
version0.1.0
sourcesrc
created_at2020-09-11 13:16:59.008266
updated_at2020-12-25 11:02:27.373414
descriptionStrip ANSI escape sequences from text
homepage
repositoryhttps://github.com/KSXGitHub/strip-ansi-cli.git
max_upload_size
id287365
size13,588
Khải (KSXGitHub)

documentation

https://docs.rs/strip-ansi-cli

README

strip-ansi-cli

Test Travis Build Status 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.

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

MIT © Hoàng Văn Khải

Commit count: 112

cargo fmt