Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

parseURL

It takes a URL string and returns an object with the URL's protocol, auth, host, pathname, search, and hash

function parseURL(input?: string, defaultProto?: string): ParsedURL;
§
parseURL(input?: string, defaultProto?: string): ParsedURL
[src]

§Parameters

§
input?: string optional
[src]
§
defaultProto?: string optional
[src]

§Return Type

§

A parsed URL object.