easy
URL Parser and Builder
A utility to parse and construct URLs
📝 Contenido del prompt
Create a URL utility that can parse and construct URLs with the following capabilities: parse all components of a URL (protocol, hostname, port, path, query, hash), handle URL encoding/decoding, modify URL components (e.g., change path or add query parameters), and validate URLs. Ensure proper handling of international domain names and special characters.