trurl
« Back to VersTracker
Description:
Command-line tool for URL parsing and manipulation
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: url cli networking developer-tools curl
Install: brew install trurl
About:
Trurl is a command-line utility that leverages libcurl's URL parser to parse, manipulate, and normalize URLs. It provides a robust and scriptable alternative to manual string manipulation, ensuring URL compliance and consistency. The tool is particularly useful for developers and system administrators working with web infrastructure.
Key Features:
  • Parses URLs into their constituent parts (scheme, host, path, query, etc.)
  • Modifies specific components (e.g., appending to query strings, changing schemes)
  • Normalizes and canonicalizes URLs for consistency
  • Strict adherence to RFC 3986 standards via libcurl
Use Cases:
  • Sanitizing and normalizing user-provided URLs in scripts
  • Constructing complex API endpoints by appending parameters programmatically
  • Extracting specific components (like the domain or path) from a list of URLs
Alternatives:
  • urlparse (Python module) – Trurl is a standalone CLI tool, whereas urlparse requires a Python environment.
  • jq – While jq can parse JSON, Trurl is specifically designed for URL string manipulation without needing external data structures.
Version History
Detected Version Rev Change Commit
Sep 19, 2024 7:45am 0 VERSION_BUMP 4cbe71bf
Sep 19, 2024 6:58am 0 VERSION_BUMP a073275a
Sep 12, 2024 3:31pm 0 VERSION_BUMP daeade01
Sep 12, 2024 2:02pm 0 VERSION_BUMP 70a68d50