trurl

c
curl license

A command line tool for URL parsing and manipulation.

3.4K
Stars
trurl-0.16.1
Latest release
1 day ago
Last activity
Active
Status

trurl is a command-line tool for parsing, constructing and modifying URLs in shell scripts.

 

It extracts individual components such as the hostname or path, replaces their values and resolves relative references. Query operations append parameters, remove matching keys and sort key-value pairs, with URL encoding handled by the parser.

 

It's URL handling is based on libcurl's parser, matching the interpretation used by curl. It reads batches of URLs from files or standard input and emits formatted components or JSON for further processing use cases.

 

For developers who are used to curl and writing shell scripts that prepare HTTP requests or clean URL lists, trurl provides structured operations for changing addresses and parsing URLs.

Related tools

Get Updates On Terminal Trove.

No spam, just updates on Terminal Trove. See an example update.