deploy/classic/api/index.md
:::info Legacy Documentation
You are viewing legacy documentation for Deno Deploy Classic. We recommend migrating to the new <a href="/deploy/">Deno Deploy</a> platform.
:::
This is a reference for runtime APIs available on Deno Deploy Classic. This API is very similar to the standard runtime API, but some APIs are not available in the same way, given that Deno Deploy Classic is a serverless environment.
Please use this section of the documentation to explore available APIs on Deno Deploy.
consoleatobbtoafetchRequestResponseURLFileBlobrandomUUID()getRandomValues()setTimeout, clearTimeout, and setInterval)ReadableStreamWritableStreamTransformStreamimport maps are currently only available via
deployctl or
deployctl GitHub Action
workflows.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 queriesDeno.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 symlinkIn the future, these APIs will also be added:
Deno.connectDatagram for outbound UDP socketsfetch options using Deno.createHttpClientJust like the Deno CLI, we do not implement the __proto__ object field as
specified in ECMA Script Annex B.