2 unstable releases
| 0.1.0 | Mar 17, 2021 |
|---|---|
| 0.0.0 | Mar 7, 2021 |
#9 in #prettier
16KB
191 lines
humanize-url
A library for creating human-readable URLs.
Example
use humanize_url::humanize_url;
let url = humanize_url("https://github.com/SirWindfield").unwrap();
assert_eq!("github.com/SirWindfield", url);
Use-case
I use the library often when working with links inside of terminals. Together with terminal-link it can be used to print prettier links to the terminal.
Dependencies
~2.6–4MB
~63K SLoC