Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/url.ts>URL

A modern runtime for JavaScript and TypeScript.
Go to Latest
class URL
import { URL } from "https://deno.land/x/deno@v0.30.0/cli/js/url.ts";

Constructors

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

Properties

private
_parts: URLParts
private
_searchParams: urlSearchParams.URLSearchParams
hash: string
host: string
hostname: string
href: string
readonly
origin: string
password: string
pathname: string
port: string
protocol: string
readonly
searchParams: urlSearchParams.URLSearchParams
username: string

Methods

private
_updateSearchParams(): void
toJSON(): string
toString(): string
[customInspect](): string

Static Methods

createObjectURL(b: domTypes.Blob): string
revokeObjectURL(url: string): void