Spec-Zone.ru › Deno 2

API reference

The complete API reference for Deno: runtime APIs available in the Deno namespace, supported web platform APIs, and the Node.js built-in modules Deno provides for compatibility.

Deno APIs

View all symbols ->

Non-standard APIs in the global Deno namespace: file system, network, subprocesses, testing, FFI, and more.

  • Bundler
    Bundle TypeScript and JavaScript code, along with their dependencies, into a single file.
  • Cloud
    Tools for managing state, scheduling tasks, and interacting with key-value stores.
  • Errors
    Error types and utilities for handling exceptions and custom error scenarios.
  • Fetch
    HTTP client for fetching data across a network.
  • FFI
    Foreign Function Interface.
  • File System
    File System APIs for working with files, directories, and file metadata.
  • GPU
    GPU programming and rendering.
  • HTTP Server
    Handling HTTP requests, serving responses, and managing server behavior.
  • I/O
    Interfaces for reading, writing, seeking, and managing resources.
  • Jupyter
    Create interactive notebooks and execute code cells.
  • Linter
    Interfaces and helpers for writing and testing custom lint rules.
  • Network
    A wide range of networking tasks, from low-level connections to high-level server creation.
  • Permissions
    Permission system controls access to resources (e.g., file system, network, environment variables).
  • Runtime
    System-related functionality, process management, and observability.
  • Subprocess
    Spawn and manage child processes, execute commands, and collect output.
  • Telemetry
    OpenTelemetry observability integration tools.
  • Testing
    Robust testing and benchmarking capabilities to ensure code quality and performance.
  • WebSockets
    Enable real-time communication between clients and servers using WebSockets.
  • Other APIs

Web APIs

View all symbols ->

Web platform standards implemented by Deno: fetch, streams, workers, crypto, and other browser-compatible APIs.

  • Cache
    Tools for caching and managing data.
  • Canvas
    Create, transform, and display images and graphics within the HTML element.
  • Crypto
    Cryptographic functionality for secure communication, data protection, and key management.
  • Encoding
    Handle character encoding, decoding, and binary data conversion.
  • Events
    Handle events and interactions.
  • Fetch
    HTTP client for fetching data across a network.
  • File
    File and data manipulation tools.
  • Geometry Interfaces Module API
  • GPU
    GPU programming and rendering.
  • I/O
    Interfaces for reading, writing, seeking, and managing resources.
  • Intl
    Tools for internationalization and localization.
  • Messaging
    Facilitate communication between different parts of an application, allowing data exchange and coordination.
  • Performance
    Measure, analyze, and optimize application performance.
  • Platform
    A set of essential interfaces and functions to interact with the browser environment.
  • Storage
    Store data locally within the browser.
  • Streams
    Manage data streams, queuing strategies, and transformations.
  • URL
    Manipulate URLs, extract data from URLs and manage query parameters.
  • Wasm
    Efficiently execute computationally intensive tasks.
  • WebSockets
    Enable real-time communication between clients and servers using WebSockets.
  • Workers
    Run script operations in background threads.
  • Other APIs

Node APIs

View all symbols ->

Node.js built-in modules supported in Deno for backwards compatibility, importable via the node: scheme.

  • node:assert
    The node:assert module provides a set of assertion functions for verifying invariants.
  • node:async_hooks
    We strongly discourage the use of the async_hooks API.
  • node:buffer
    Buffer objects are used to represent a fixed-length sequence of bytes.
  • node:child_process
    The node:child_process module provides the ability to spawn subprocesses in a manner that is similar, but not identical, to popen(3) .
  • node:cluster
    Deno compatibility All exports are non-functional stubs.
  • node:console
    The node:console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.
  • node:constants
  • node:crypto
    The node:crypto module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, s...
  • node:dgram
    The node:dgram module provides an implementation of UDP datagram sockets.
  • node:diagnostics_channel
    The node:diagnostics_channel module provides an API to create named channels to report arbitrary message data for diagnostics purposes.
  • node:dns
    The node:dns module enables name resolution.
  • node:dns/promises
    The dns.promises API provides an alternative set of asynchronous DNS methods that return Promise objects rather than using callbacks.
  • node:domain
    Deno compatibility All exports are non-functional stubs.
  • node:events
    Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (calle...
  • node:fs
    The node:fs module enables interacting with the file system in a way modeled on standard POSIX functions.
  • node:fs/promises
    The fs/promises API provides asynchronous file system methods that return promises.
  • node:http
    To use the HTTP server and client one must import the node:http module.
  • node:http2
    The node:http2 module provides an implementation of the HTTP/2 protocol.
  • node:https
    HTTPS is the HTTP protocol over TLS/SSL.
  • node:inspector
    Deno compatibility console is supported.
  • node:inspector/promises
    The node:inspector/promises module provides an API for interacting with the V8 inspector.
  • node:module
  • node:net
    Stability: 2 - Stable The node:net module provides an asynchronous network API for creating stream-based TCP or IPC servers ( createServe...
  • node:os
    The node:os module provides operating system-related utility methods and properties.
  • node:path
    The node:path module provides utilities for working with file and directory paths.
  • node:perf_hooks
    This module provides an implementation of a subset of the W3C Web Performance APIs as well as additional APIs for Node.js-specific perfor...
  • node:process
  • node:punycode
    **The version of the punycode module bundled in Node.js is being deprecated.
  • node:querystring
    The node:querystring module provides utilities for parsing and formatting URL query strings.
  • node:readline
    The node:readline module provides an interface for reading data from a Readable stream (such as process.stdin ) one line at a time.
  • node:readline/promises
  • node:repl
    Deno compatibility All symbols are not supported.
  • node:sea
    Deno compatibility All symbols are not supported.
  • node:sqlite
    Deno compatibility This module has been added in Deno v2.2.
  • node:stream
    A stream is an abstract interface for working with streaming data in Node.js.
  • node:stream/consumers
    The utility consumer functions provide common options for consuming streams.
  • node:stream/promises
  • node:stream/web
  • node:string_decoder
    The node:string_decoder module provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF...
  • node:test
    The node:test module facilitates the creation of JavaScript tests.
  • node:test/reporters
    The node:test/reporters module exposes the builtin-reporters for node:test .
  • node:timers
    The timer module exposes a global API for scheduling functions to be called at some future period of time.
  • node:timers/promises
    The timers/promises API provides an alternative set of timer functions that return Promise objects.
  • node:tls
    The node:tls module provides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols that is buil...
  • node:trace_events
    Deno compatibility All exports are non-functional stubs.
  • node:tty
    The node:tty module provides the tty.ReadStream and tty.WriteStream classes.
  • node:url
    The node:url module provides utilities for URL resolution and parsing.
  • node:util
    The node:util module supports the needs of Node.js internal APIs.
  • node:util/types
  • node:v8
    Deno compatibility cachedDataVersionTag and getHeapStatistics , serialize and deserialize are supported.
  • node:vm
    The node:vm module enables compiling and running code within V8 Virtual Machine contexts.
  • node:wasi
    Deno compatibility All exports are non-functional stubs.
  • node:worker_threads
    The node:worker_threads module enables the use of threads that execute JavaScript in parallel.
  • node:zlib
    The node:zlib module provides compression functionality implemented using Gzip, Deflate/Inflate, and Brotli.

© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/api

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API