Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/url/lib.deno_url.d.ts>URL

A modern runtime for JavaScript and TypeScript.
Go to Latest
class URL
import { URL } from "https://deno.land/x/deno@v1.28.0/ext/url/lib.deno_url.d.ts";

The URL interface represents an object providing static methods used for creating object URLs.

Constructors

new
URL(url: string | URL, base?: string | URL)

Properties

hash: string
host: string
hostname: string
href: string
readonly
origin: string
password: string
pathname: string
port: string
protocol: string
readonly
searchParams: URLSearchParams
username: string

Methods

toJSON(): string
toString(): string

Static Methods

createObjectURL(blob: Blob): string
revokeObjectURL(url: string): void