3 releases
Uses new Rust 2024
| 0.1.2 | Oct 13, 2025 |
|---|---|
| 0.1.1 | Aug 25, 2025 |
| 0.1.0 | Aug 25, 2025 |
#2658 in Command line utilities
185 downloads per month
20KB
171 lines
Uurl
Universal url: a transformer and manipulator for Urls.
Inspiration
- Xurl (GitHub): A command-line utility to manipulate urls.
- urlmatic (GitHub): Slice and dice URLs on the command line.
- trurl (introductory blog post): trurl is a command line tool for URL parsing and manipulation.
Features
- Find links in text using linkify
- Bare links
- Git SSH links
- Markdown links
- Color links via ANSI codes
- Make links clickable via OSC8 codes
- Convert bare links to Markdown links with titles
- Extract various URL components
- Rewrite/modify various URL components
- Replace URLs based on template expressions
- Sort and otherwise normalize query strings
- Normalize and Clean URLs
- This will require a URL classifier as different URL components are different based on their domain
- Remove tracking parameters
- Remove unnecessary parameters
- Limit characters to valid characters
- Git URLs
- HTTP vs SSH
- Be able to switch between various git providers
- Truncate a github url to it's basic path i.e. ORG_OR_USER/REPO
- Switch between lib.rs and crates.io
- Add whitespace and unicode normalization for link metadata
- Add custom formatting options for markdown links
- Figure out how to grab the right title when Anubis or other anti-scripting measures are in place
Dependencies
~16–35MB
~534K SLoC