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

createValidAbsoluteUrl

Attempts to create a valid absolute URL.

function createValidAbsoluteUrl(
url: URL | string,
baseUrl?: string | URL | undefined,
options?: Object | undefined,
): URL | null;
§
createValidAbsoluteUrl(url: URL | string, baseUrl?: string | URL | undefined, options?: Object | undefined): URL | null
[src]

§Parameters

§
url: URL | string
[src]
  • An absolute, or relative, URL.
§
baseUrl?: string | URL | undefined optional
[src]
§
options?: Object | undefined optional
[src]

§Return Type

§
URL | null
[src]

Either a valid {URL}, or null otherwise.