std/node/url.ts

Deno standard library
Go to Latest
function parse
import { parse } from "https://deno.land/std@0.145.0/node/url.ts?s=parse";

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

Parameters

url: string | Url[src]

The URL string to parse.

parseQueryString: boolean[src]

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[src]

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