funURL is a command-line tool designed as a Swiss Army knife for URL. It takes a URL as input (via stdin, command-line flags, or arguments) and provides a range of operations for parsing, validation, modification, encoding/decoding, and handling URLs efficiently.
Planned Features
- Parsing: Extract protocol, domain, path, query parameters, and fragments.
-
- Validation: Check if a URL is properly formed.
- Modification: Add, remove, or update query parameters, change protocols, or modify paths.
- Encoding/Decoding: URL-encode and decode strings.
- Extraction: Get the hostname, subdomains, or TLD.
Usage Examples
echo "https://example.com/foo?bar=baz" | funURL --get-query
# Output: bar=baz
funURL "https://example.com/foo/bar" --replace-path "/new/path"
# Output: https://example.com/new/path
funURL "https://example.com?foo=1&bar=2" --remove-param "bar"
# Output: https://example.com?foo=1
funURLis a command-line tool designed as a Swiss Army knife for URL. It takes a URL as input (viastdin, command-line flags, or arguments) and provides a range of operations for parsing, validation, modification, encoding/decoding, and handling URLs efficiently.Planned Features
Usage Examples