An open API service indexing awesome lists of open source software.

https://github.com/msrd0/ellipse-bin

Command that truncates and ellipses strings in a human-friendly way
https://github.com/msrd0/ellipse-bin

Last synced: about 2 months ago
JSON representation

Command that truncates and ellipses strings in a human-friendly way

Awesome Lists containing this project

README

        

# ellipse

Command that truncates and ellipses strings in a human-friendly way.

## How to use

```
$ echo very long sentence |ellipse -n 12
very long se…
```

## How to install

Installation instructions are provided for ArchLinux only. When using a different
operation system, adoption to their package manager is left as an exercise to the
reader.

### Install from AUR (recommended)

This example uses `yay`, but you can use your favourite AUR helper instead.

```bash
yay -S ellipse
```

### Install via cargo

First, install rust/cargo:

```bash
sudo pacman -S rust
```

Then, install with cargo:

```bash
cargo install ellipse-bin
```

This will only work if you have cargo's binary install directory added to your `$PATH`
variable.