#url #short #shortener #link #web

app urlshortener-cli

A program which makes your url shorten

4 releases (1 stable)

✓ Uses Rust 2018 edition

1.0.0 Jun 14, 2019
0.1.2 Jan 6, 2018
0.1.1 Nov 28, 2016
0.1.0 Nov 14, 2016

#2 in #link

24 downloads per month

MIT license

3KB

urlshortener-cli

MIT licensed

A very simple urlshortener program written in Rust language. It uses urlshortener rust library as data provider.

Installing with Cargo

cargo install urlshortener-cli

Usage

The interface is minimal as possible:

$ urlshortener-cli http://google.ru http://yandex.ru
http://google.ru -> https://is.gd/h5kR5r
http://yandex.ru -> https://is.gd/CifrPx

If your url has escaped characters just wrap it with quotes:

$ urlshortener-cli "https://www.google.ru/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiclOPp3OTRAhVyb5oKHUzyCl8QFggpMAE&url=http%3A%2F%2Ftest.tankionline.com%2F&usg=AFQjCNFIEFFpu2m_QofHelAXRK0JP4dLOQ&sig2=Fc6eFhPDqNgt5kZMzRWPIA"

https://www.google.ru/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiclOPp3OTRAhVyb5oKHUzyCl8QFggpMAE&url=http%3A%2F%2Ftest.tankionline.com%2F&usg=AFQjCNFIEFFpu2m_QofHelAXRK0JP4dLOQ&sig2=Fc6eFhPDqNgt5kZMzRWPIA -> https://is.gd/jIsDF1

License

This project is licensed under the MIT license.

Dependencies

~1.5MB
~31K SLoC