#uuid #converter #shortener #base62 #url62

app friendlyid

The FriendlyID tool that converts a given UUID to a URL-friendly ID which is based on Base62

2 unstable releases

0.3.0 Sep 8, 2020
0.2.0 Sep 8, 2020

#5 in #base62

46 downloads per month

MIT/Apache

7KB
77 lines

Build Status Copr build status

friendlyid converter

The FriendlyID application that converts a given UUID to a URL-friendly ID which is based on Base62

Sample usage

Convert UUID to FriendlyID

$ friendlyid c3587ec5-0976-497f-8374-61e0c2ea3da5                                                                                                      ✔ 
5wbwf6yUxVBcr48AMbz9cb

Convert FriendlyID to UUID

$ friendlyid 5wbwf6yUxVBcr48AMbz9cb                                                                                                                    ✔ 
c3587ec5-0976-497f-8374-61e0c2ea3da5

Display help

$ friendlyid -h                                                                                                                                        ✔ 
FriendlyId Converter 0.1.0

The FriendlyID library converts a given UUID to a URL-friendly ID which is based on Base62

USAGE:
    friendlyid [FLAGS] <ID>

ARGS:
    <ID>    ID to convert

FLAGS:
    -d, --decode     Decode friendlyId
    -h, --help       Prints help information
    -V, --version    Prints version information

Installation

Fedora - install using package manager

$ sudo dnf copr enable mariuszs/rust
$ sudo dnf install friendlyid 

Install using cargo

$ cargo install friendlyid 

Download binary from github (linux or windows)

Use binary friendlyid or friendlyid.exe downloaded from https://github.com/mariuszs/rust-friendlyid/releases

Use package appropriate for your linux distribution (RPM or DEB)

Download and install DEB or RPM from https://github.com/mariuszs/rust-friendlyid/releases

Dependencies

~0.7–1MB
~15K SLoC