On this page
API Reference
This is a reference for runtime APIs available on Deno Deploy. This API is very similar to the standard runtime API, but some APIs are not available in the same way, given that Deno Deploy is a serverless environment.
Please use this section of the documentation to explore available APIs on Deno Deploy.
Web APIs Jump to heading
consoleatobbtoa- Fetch API
fetchRequestResponseURLFileBlob
- TextEncoder
- TextDecoder
- TextEncoderStream
- TextDecoderStream
- Performance
- Web Crypto API
randomUUID()getRandomValues()- SubtleCrypto
- WebSocket API
- Timers
(
setTimeout,clearTimeout, andsetInterval) - Streams API
ReadableStreamWritableStreamTransformStream
- URLPattern API
- Import Maps
- Note:
import mapsare currently only available via deployctl or deployctl GitHub Action workflows.
- Note:
Deno APIs Jump to heading
Note: only stable APIs of Deno are made available in Deploy.
Deno.env- Interact with environment variables (secrets).get(key: string): string | undefined- get the value of an environment variable.toObject(): { [key: string]: string }- get all environment variables as an object.
Deno.connect- Connect to TCP sockets.Deno.connectTls- Connect to TCP sockets using TLS.Deno.startTls- Start TLS handshake from an existing TCP connection.Deno.resolveDns- Make DNS queries- File system API
Deno.cwd- Get the current working directoryDeno.readDir- Get directory listingsDeno.readFile- Read a file into memoryDeno.readTextFile- Read a text file into memoryDeno.open- Open a file for streaming readingDeno.stat- Get file system entry informationDeno.lstat- Get file system entry information without following symlinksDeno.realPath- Get the real path of a file after resolving symlinksDeno.readLink- Get the target path for the given symlink
Future support Jump to heading
In the future, these APIs will also be added:
- Cache API
- UDP API:
Deno.connectDatagramfor outbound UDP sockets
- Customizable
fetchoptions usingDeno.createHttpClient
Limitations Jump to heading
Just like the Deno CLI, we do not implement the __proto__ object field as
specified in ECMA Script Annex B.