trurl

Command-line tool for URL parsing and manipulation

brewmacoslinux
Try with needOr install directly
Source

About

Command-line tool for URL parsing and manipulation

Commands

trurl

Examples

Extract the host from a URL$ trurl --get host https://example.com/path?query=value
Modify a URL by changing the scheme and host$ trurl --set scheme=https --set host=newhost.com https://oldhost.com/path
Extract query parameter value from a URL$ trurl --get '{query:id}' 'https://example.com?id=123&name=test'