Deno logoDeno



  • AbortController

    A controller object that allows you to abort one or more DOM requests as and when desired.

  • Blob

    A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.

  • CloseEvent

  • CustomEvent

  • DOMException

  • ErrorEvent

  • Event

    An event which takes place in the DOM.

  • EventTarget

    EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.

  • File

    Provides information about files and allows JavaScript in a web page to access their content.

  • GPU

  • GPUAdapter

  • GPUBindGroup

  • GPUBindGroupLayout

  • GPUBuffer

  • GPUBufferUsage

  • GPUColorWrite

  • GPUCommandBuffer

  • GPUCommandEncoder

  • GPUComputePassEncoder

  • GPUComputePipeline

  • GPUDevice

  • GPUMapMode

  • GPUOutOfMemoryError

  • GPUPipelineLayout

  • GPUQuerySet

  • GPUQueue

  • GPURenderBundle

  • GPURenderBundleEncoder

  • GPURenderPassEncoder

  • GPURenderPipeline

  • GPUSampler

  • GPUShaderModule

  • GPUShaderStage

  • GPUSupportedFeatures

  • GPUSupportedLimits

  • GPUTexture

  • GPUTextureUsage

  • GPUTextureView

  • GPUUncapturedErrorEvent

  • GPUValidationError

  • Headers

  • Location

    The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Accessible via globalThis.location.

  • MessageChannel

    The MessageChannel interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.

  • MessageEvent

  • MessagePort

    The MessagePort interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.

  • Navigator

  • Performance

  • PerformanceEntry

    Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the .mark() method) at an explicit point in an application.

  • PerformanceMark

    PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the performance timeline.

  • PerformanceMeasure

    PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the performance timeline.

  • ProgressEvent

    Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an , , , or ).

  • Request

    This Fetch API interface represents a resource request.

  • Response

    This Fetch API interface represents the response to a request.

  • URL

    The URL interface represents an object providing static methods used for creating object URLs.

  • URLPattern

    The URLPattern API provides a web platform primitive for matching URLs based on a convenient pattern syntax.

    The syntax is based on path-to-regexp. Wildcards, named capture groups, regular groups, and group modifiers are all supported.

    // Specify the pattern as structured data.
    const pattern = new URLPattern({ pathname: "/users/:user" });
    const match = pattern.exec("/users/joe");
    console.log(match.pathname.groups.user); // joe
    // Specify a fully qualified string pattern.
    const pattern = new URLPattern("");
    console.log(pattern.test("")); // true
    console.log(pattern.test("")); // false
    // Specify a relative string pattern with a base URL.
    const pattern = new URLPattern("/:article", "");
    console.log(pattern.test("")); // true
    console.log(pattern.test("")); // false
  • URLSearchParams

  • WebSocket

    Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.

  • Window

  • Worker



  • addEventListener

    Registers an event listener in the global scope, which will be called synchronously whenever the event type is dispatched.

    addEventListener('unload', () => { console.log('All finished!'); });
    dispatchEvent(new Event('unload'));
  • alert

    Shows the given message and waits for the enter key pressed. If the stdin is not interactive, it does nothing.

  • atob

    Decodes a string of data which has been encoded using base-64 encoding.

    console.log(atob("aGVsbG8gd29ybGQ=")); // outputs 'hello world'
  • btoa

    Creates a base-64 ASCII encoded string from the input string.

    console.log(btoa("hello world"));  // outputs "aGVsbG8gd29ybGQ="
  • clearInterval

    Cancels a timed, repeating action which was previously started by a call to setInterval()

    const id = setInterval(() => {console.log('hello');}, 500);
  • clearTimeout

    Cancels a scheduled action initiated by setTimeout()

    const id = setTimeout(() => {console.log('hello');}, 500);
  • confirm

    Shows the given message and waits for the answer. Returns the user's answer as boolean. Only y and Y are considered as true. If the stdin is not interactive, it returns false.

  • dispatchEvent

    Dispatches an event in the global scope, synchronously invoking any registered event listeners for this event in the appropriate order. Returns false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault(). Otherwise it returns true.

    dispatchEvent(new Event('unload'));
  • fetch

    Fetch a resource from the network. It returns a Promise that resolves to the Response to that request, whether it is successful or not.

    const response = await fetch("");
    console.log(response.status);  // e.g. 200
    console.log(response.statusText); // e.g. "OK"
    const jsonData = await response.json();
  • prompt

    Shows the given message and waits for the user's input. Returns the user's input as string. If the default value is given and the user inputs the empty string, then it returns the given default value. If the default value is not given and the user inputs the empty string, it returns null. If the stdin is not interactive, it returns null.

  • queueMicrotask

    A microtask is a short function which is executed after the function or module which created it exits and only if the JavaScript execution stack is empty, but before returning control to the event loop being used to drive the script's execution environment. This event loop may be either the main event loop or the event loop driving a web worker.

    queueMicrotask(() => { console.log('This event loop stack is complete'); });
  • removeEventListener

    Remove a previously registered event listener from the global scope

    const lstnr = () => { console.log('hello'); };
    addEventListener('load', lstnr);
    removeEventListener('load', lstnr);
  • setInterval

    Repeatedly calls a function , with a fixed time delay between each call.

    // Outputs 'hello' to the console every 500ms
    setInterval(() => { console.log('hello'); }, 500);
  • setTimeout

    Sets a timer which executes a function once after the timer expires. Returns an id which may be used to cancel the timeout.

    setTimeout(() => { console.log('hello'); }, 500);
  • structuredClone


§Type Aliases