4 releases (2 stable)

1.1.0 Nov 20, 2023
1.0.0 Nov 16, 2023
0.1.1 Nov 16, 2023
0.1.0 Nov 16, 2023

#2346 in Command line utilities

MIT license

27KB
186 lines

Tyupy

Get URL(s) title in any format.

Build status Sponsor me


Features

  • Get URL(s) title in any format*.
    • Markdown
    • Org-mode
  • Fancy error message and colorful output.
  • Cross-platform and single binary.

*Please open a PR if your favorite format doesn't exist

Usage

🦄 tyupy --help

🦄 tyupy https://github.com/azzamsa/tin/ # Get URL title in markdown format (default).
[GitHub - azzamsa/tin: Rust GraphQL Template 🏗](https://github.com/azzamsa/tin/)

🦄 tyupy https://github.com/azzamsa/tin/ --max-length 16 # Limit title length
[GitHub - azzamsa...](https://github.com/azzamsa/tin)

🦄 tyupy https://github.com/azzamsa/tin/ --max-length 16 --ellipsis "***" # Use custom ellipsis
[GitHub - azzamsa***](https://github.com/azzamsa/tin)

🦄 tyupy https://github.com/azzamsa/tin/ --format org # Use `-f o` alias for less typing
[[https://github.com/azzamsa/tin/][GitHub - azzamsa/tin: Rust GraphQL Template 🏗]]

🦄 tyupy # reads from stdin
https://github.com/azzamsa/zman
[GitHub - azzamsa/zman: A time progress bar utilities](https://github.com/azzamsa/zman)
https://github.com/azzamsa/tin/
https://github.com/azzamsa/tun
[GitHub - azzamsa/tin: Rust GraphQL Template 🏗](https://github.com/azzamsa/tin/)
[GitHub - azzamsa/tun: Rust REST API Boilerplate 🏗](https://github.com/azzamsa/tun)

Installation

From binaries

The release page includes pre-compiled binaries for GNU/Linux, macOS, and Windows.

From source

Using cargo-binstall

$ cargo binstall tyupy

Using Rust's package manager cargo:

$ cargo install tyupy

Development

git clone https://github.com/azzamsa/tyupy

# Build
cd tyupy
cargo build

# Run unit tests and integration tests
cargo test

# Install
cargo install --path .

Contributing

To learn more read the development guide

Origin of the name

The term "tyupy" is a playful variation inspired by Tupai, which translates to "Squirrel" in English. The choice is influenced by the URL-like sound associated with the word "Squirrel".

Credits

Dependencies

~12–25MB
~388K SLoC