Crates.io | shrtnr |
lib.rs | shrtnr |
version | 0.0.1 |
source | src |
created_at | 2020-10-11 00:30:43.38501 |
updated_at | 2020-10-11 00:30:43.38501 |
description | Shrtnr is a smart string shortener. |
homepage | |
repository | https://github.com/dunmatt/shrtnr |
max_upload_size | |
id | 298229 |
size | 4,280 |
Shrtnr is a smart string shortener, suitable for command prompts, title bars, and other cases where a long string might need to fit into a single short line.
I'm just starting development, definitely not ready for use yet.
There are a few things that sets shrtnr
apart from other string shortening tools. First, it is
general, the same function can be used on a file path, a URL, a political manifesto, or any
combination thereof. And secondly, shrtnr
doesn't overdo it, if it only needs to remove two
characters to hit its target length, then it will only remove two characters (this is in contrast
to many file path shorteners that reduce each directory to a single letter even when they don't
need to).
Contributions, both in the form of PRs and Issues are very welcome!
TODO (also, see the test cases)