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

x/deno/cli/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.28.1/cli/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