URL parser

Inspect a URL locally to see its scheme, host, path, query and fragment.

Parse URL example
Example input
https://example.com/a?q=1#top
Example output
{
  "protocol": "https:",
  "hostname": "example.com",
  "port": "",
  "pathname": "/a",
  "query": [
    [
      "q",
      "1"
    ]
  ],
  "hash": "#top"
}