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

x/deno/cli/tsc/dts/lib.deno.worker.d.ts>WorkerLocation

A modern runtime for JavaScript and TypeScript.
Go to Latest
class WorkerLocation
import { WorkerLocation } from "https://deno.land/x/deno@v1.32.3/cli/tsc/dts/lib.deno.worker.d.ts";

The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.

Constructors

new
WorkerLocation()

Properties

readonly
hash: string
readonly
host: string
readonly
hostname: string
readonly
href: string
readonly
origin: string
readonly
pathname: string
readonly
port: string
readonly
protocol: string

Methods

toString(): string