Skip to main content


Deno standard library
Go to Latest
function parse
import { parse } from "";

The url.urlParse() method takes a URL string, parses it, and returns a URL object.


url: string | Url

The URL string to parse.

parseQueryString: boolean

If true, the query property will always be set to an object returned by the querystring module's parse() method. If false, the query property on the returned URL object will be an unparsed, undecoded string. Default: false.

slashesDenoteHost: boolean

If true, the first token after the literal string // and preceding the next / will be interpreted as the host