Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.d.ts>__url.URL

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface __url.URL
import { type __url } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { URL } = __url;

Properties

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

toString(): string
toJSON(): string
variable __url.URL
import { __url } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { URL } = __url;

type

{ prototype: URL; new (url: string, base?: string | URL): URL; createObjectURL(object: __domTypes.Blob): string; revokeObjectURL(url: string): void; }