Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.29.1/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