Deno

The global namespace where Deno specific, non-standard APIs are located.

§Namespace

Deno.errors

A set of error constructors that are raised by Deno APIs.

Deno.jupyter

A namespace containing runtime APIs available in Jupyter notebooks.

§Classes

Deno.AtomicOperation

UNSTABLE: New API, yet to be vetted.

Deno.Buffer deprecated

A variable-sized buffer of bytes with read() and write() methods.

Deno.ChildProcess

The interface for handling a child process returned from Deno.Command.spawn.

Deno.Command

Create a child process.

Deno.errors.AddrInUse

Raised when attempting to open a server listener on an address and port that already has a listener.

Deno.errors.AddrNotAvailable

Raised when the underlying operating system reports an EADDRNOTAVAIL error.

Deno.errors.AlreadyExists

Raised when trying to create a resource, like a file, that already exits.

Deno.errors.BadResource

The underlying IO resource is invalid or closed, and so the operation could not be performed.

Deno.errors.BrokenPipe

Raised when trying to write to a resource and a broken pipe error occurs. This can happen when trying to write directly to stdout or stderr and the operating system is unable to pipe the output for a reason external to the Deno runtime.

Deno.errors.Busy

Raised when the underlying IO resource is not available because it is being awaited on in another block of code.

Deno.errors.ConnectionAborted

Raised when the underlying operating system reports an ECONNABORTED error.

Deno.errors.ConnectionRefused

Raised when the underlying operating system reports that a connection to a resource is refused.

Deno.errors.ConnectionReset

Raised when the underlying operating system reports that a connection has been reset. With network servers, it can be a normal occurrence where a client will abort a connection instead of properly shutting it down.

Deno.errors.FilesystemLoop

Raised when too many symbolic links were encountered when resolving the filename.

Deno.errors.Http

Raised in situations where when attempting to load a dynamic import, too many redirects were encountered.

Deno.errors.Interrupted

Raised when the underlying operating system reports an EINTR error. In many cases, this underlying IO error will be handled internally within Deno, or result in an @{link BadResource} error instead.

Deno.errors.InvalidData

Raised when an operation to returns data that is invalid for the operation being performed.

Deno.errors.IsADirectory

Raised when trying to open, create or write to a directory.

Deno.errors.NetworkUnreachable

Raised when performing a socket operation but the remote host is not reachable.

Deno.errors.NotADirectory

Raised when trying to perform an operation on a path that is not a directory, when directory is required.

Deno.errors.NotConnected

Raised when the underlying operating system reports an ENOTCONN error.

Deno.errors.NotFound

Raised when the underlying operating system indicates that the file was not found.

Deno.errors.NotSupported

Raised when the underlying Deno API is asked to perform a function that is not currently supported.

Deno.errors.PermissionDenied

Raised when the underlying operating system indicates the current user which the Deno process is running under does not have the appropriate permissions to a file or resource, or the user did not provide required --allow-* flag.

Deno.errors.TimedOut

Raised when the underlying operating system reports that an I/O operation has timed out (ETIMEDOUT).

Deno.errors.UnexpectedEof

Raised when attempting to read bytes from a resource, but the EOF was unexpectedly encountered.

Deno.errors.WouldBlock

Raised when the underlying operating system would need to block to complete but an asynchronous (non-blocking) API is used.

Deno.errors.WriteZero

Raised when expecting to write to a IO buffer resulted in zero bytes being written.

Deno.FsFile

The Deno abstraction for reading and writing files.

Deno.Kv

UNSTABLE: New API, yet to be vetted.

Deno.KvListIterator

UNSTABLE: New API, yet to be vetted.

Deno.KvU64

UNSTABLE: New API, yet to be vetted.

Deno.Permissions

Deno's permission management API.

Deno.PermissionStatus

An EventTarget returned from the Deno.permissions API which can provide updates to any state changes of the permission.

Deno.Process
Deno.UnsafeCallback

UNSTABLE: New API, yet to be vetted.

Deno.UnsafeFnPointer

UNSTABLE: New API, yet to be vetted.

Deno.UnsafePointer

UNSTABLE: New API, yet to be vetted.

Deno.UnsafePointerView

UNSTABLE: New API, yet to be vetted.

§Enums

Deno.SeekMode

A enum which defines the seek mode for IO related APIs that support seeking.

§Variables

Deno.args

Returns the script arguments to the program.

Deno.brand
Deno.build

Information related to the build of the current Deno runtime.

Deno.customInspect deprecated

A symbol which can be used as a key for a custom method which will be called when Deno.inspect() is called, or when the object is logged to the console.

Deno.env

An interface containing methods to interact with the process environment variables.

Deno.File deprecated

The Deno abstraction for reading and writing files.

Deno.jupyter.$display
Deno.mainModule

The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.

Deno.noColor

Reflects the NO_COLOR environment variable at program start.

Deno.permissions

Deno's permission management API.

Deno.pid

The current process ID of this instance of the Deno CLI.

Deno.ppid

The process ID of parent process of this instance of the Deno CLI.

Deno.stderr

A reference to stderr which can be used to write directly to stderr. It implements the Deno specific {@link Writer}, {@link WriterSync}, and {@link Closer} interfaces as well as provides a WritableStream interface.

Deno.stdin

A reference to stdin which can be used to read directly from stdin. It implements the Deno specific {@link Reader}, {@link ReaderSync}, and {@link Closer} interfaces as well as provides a ReadableStream interface.

Deno.stdout

A reference to stdout which can be used to write directly to stdout. It implements the Deno specific {@link Writer}, {@link WriterSync}, and {@link Closer} interfaces as well as provides a WritableStream interface.

Deno.test

Register a test which will be run when deno test is used on the command line and the containing module looks like a test module.

Deno.version

Version information related to the current Deno CLI runtime environment.

§Functions

Deno.addSignalListener

Registers the given function as a listener of the given signal event.

Deno.bench

Register a benchmark test which will be run when deno bench is used on the command line and the containing module looks like a bench module.

Deno.chdir

Change the current working directory to the specified path.

Deno.chmod

Changes the permission of a specific file/directory of specified path. Ignores the process's umask.

Deno.chmodSync

Synchronously changes the permission of a specific file/directory of specified path. Ignores the process's umask.

Deno.chown

Change owner of a regular file or directory.

Deno.chownSync

Synchronously change owner of a regular file or directory.

Deno.close

Close the given resource ID (rid) which has been previously opened, such as via opening or creating a file. Closing a file when you are finished with it is important to avoid leaking resources.

Deno.connect

UNSTABLE: New API, yet to be vetted.

Deno.connectTls

UNSTABLE: New API, yet to be vetted.

Deno.consoleSize

Gets the size of the console as columns/rows.

Deno.copy deprecated

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

Deno.copyFile

Copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable.

Deno.copyFileSync

Synchronously copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable.

Deno.create

Creates a file if none exists or truncates an existing file and resolves to an instance of Deno.FsFile.

Deno.createHttpClient

UNSTABLE: New API, yet to be vetted.

Deno.createSync

Creates a file if none exists or truncates an existing file and returns an instance of Deno.FsFile.

Deno.cron

UNSTABLE: New API, yet to be vetted.

Deno.cwd

Return a string representing the current working directory.

Deno.dlopen

UNSTABLE: New API, yet to be vetted.

Deno.execPath

Returns the path to the current deno executable.

Deno.exit

Exit the Deno process with optional exit code.

Deno.fdatasync

Flushes any pending data operations of the given file stream to disk.

const file = await Deno.open(
 "my_file.txt",
 { read: true, write: true, create: true },
);
await Deno.write(file.rid, new TextEncoder().encode("Hello World"));
await Deno.fdatasync(file.rid);
console.log(new TextDecoder().decode(await Deno.readFile("my_file.txt"))); // Hello World
Deno.fdatasyncSync

Synchronously flushes any pending data operations of the given file stream to disk.

Deno.flock

UNSTABLE: New API, yet to be vetted.

Deno.flockSync

UNSTABLE: New API, yet to be vetted.

Deno.fstat

Returns a Deno.FileInfo for the given file stream.

Deno.fstatSync

Synchronously returns a Deno.FileInfo for the given file stream.

Deno.fsync

Flushes any pending data and metadata operations of the given file stream to disk.

Deno.fsyncSync

Synchronously flushes any pending data and metadata operations of the given file stream to disk.

Deno.ftruncate

Truncates or extends the specified file stream, to reach the specified len.

Deno.ftruncateSync

Synchronously truncates or extends the specified file stream, to reach the specified len.

Deno.funlock

UNSTABLE: New API, yet to be vetted.

Deno.funlockSync

UNSTABLE: New API, yet to be vetted.

Deno.futime

Changes the access (atime) and modification (mtime) times of a file stream resource referenced by rid. Given times are either in seconds (UNIX epoch time) or as Date objects.

Deno.futimeSync

Synchronously changes the access (atime) and modification (mtime) times of a file stream resource referenced by rid. Given times are either in seconds (UNIX epoch time) or as Date objects.

Deno.gid

Returns the group id of the process on POSIX platforms. Returns null on windows.

Deno.hostname

Get the hostname of the machine the Deno process is running on.

Deno.inspect

Converts the input into a string that has the same format as printed by console.log().

Deno.isatty

Check if a given resource id (rid) is a TTY (a terminal).

Deno.iter deprecated

Turns a Reader, r, into an async iterator.

Deno.iterSync deprecated

Turns a ReaderSync, r, into an iterator.

Deno.jupyter.broadcast

Broadcast a message on IO pub channel.

Deno.jupyter.display

Display function for Jupyter Deno Kernel. Mimics the behavior of IPython's display(obj, raw=True) function to allow asynchronous displaying of objects in Jupyter.

Deno.jupyter.format

Format an object for displaying in Deno

Deno.jupyter.html

Show HTML in Jupyter frontends with a tagged template function.

Deno.jupyter.md

Show Markdown in Jupyter frontends with a tagged template function.

Deno.jupyter.svg

SVG Tagged Template Function.

Deno.kill

Send a signal to process under given pid. The value and meaning of the signal to the process is operating system and process dependant. {@link Signal} provides the most common signals. Default signal is "SIGTERM".

Deno.link

Creates newpath as a hard link to oldpath.

Deno.linkSync

Synchronously creates newpath as a hard link to oldpath.

Deno.listen

UNSTABLE: New API, yet to be vetted.

Deno.listenDatagram

UNSTABLE: New API, yet to be vetted.

Deno.listenTls

Listen announces on the local transport address over TLS (transport layer security).

Deno.loadavg

Returns an array containing the 1, 5, and 15 minute load averages. The load average is a measure of CPU and IO utilization of the last one, five, and 15 minute periods expressed as a fractional number. Zero means there is no load. On Windows, the three values are always the same and represent the current load, not the 1, 5 and 15 minute load averages.

Deno.lstat

Resolves to a Deno.FileInfo for the specified path. If path is a symlink, information for the symlink will be returned instead of what it points to.

Deno.lstatSync

Synchronously returns a Deno.FileInfo for the specified path. If path is a symlink, information for the symlink will be returned instead of what it points to.

Deno.makeTempDir

Creates a new temporary directory in the default directory for temporary files, unless dir is specified. Other optional options include prefixing and suffixing the directory name with prefix and suffix respectively.

Deno.makeTempDirSync

Synchronously creates a new temporary directory in the default directory for temporary files, unless dir is specified. Other optional options include prefixing and suffixing the directory name with prefix and suffix respectively.

Deno.makeTempFile

Creates a new temporary file in the default directory for temporary files, unless dir is specified.

Deno.makeTempFileSync

Synchronously creates a new temporary file in the default directory for temporary files, unless dir is specified.

Deno.memoryUsage

Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes.

Deno.metrics deprecated

Receive metrics from the privileged side of Deno. This is primarily used in the development of Deno. Ops, also called bindings, are the go-between between Deno JavaScript sandbox and the rest of Deno.

Deno.mkdir

Creates a new directory with the specified path.

Deno.mkdirSync

Synchronously creates a new directory with the specified path.

Deno.networkInterfaces

Returns an array of the network interface information.

Deno.open

Open a file and resolve to an instance of Deno.FsFile. The file does not need to previously exist if using the create or createNew open options. It is the caller's responsibility to close the file when finished with it.

Deno.openKv

UNSTABLE: New API, yet to be vetted.

Deno.openSync

Synchronously open a file and return an instance of Deno.FsFile. The file does not need to previously exist if using the create or createNew open options. It is the caller's responsibility to close the file when finished with it.

Deno.osRelease

Returns the release version of the Operating System.

Deno.osUptime

Returns the Operating System uptime in number of seconds.

Deno.read

Read from a resource ID (rid) into an array buffer (buffer).

Deno.readAll deprecated

Read Reader r until EOF (null) and resolve to the content as Uint8Array`.

Deno.readAllSync deprecated

Synchronously reads Reader r until EOF (null) and returns the content as Uint8Array.

Deno.readDir

Reads the directory given by path and returns an async iterable of Deno.DirEntry.

Deno.readDirSync

Synchronously reads the directory given by path and returns an iterable of Deno.DirEntry.

Deno.readFile

Reads and resolves to the entire contents of a file as an array of bytes. TextDecoder can be used to transform the bytes to string if required. Reading a directory returns an empty data array.

Deno.readFileSync

Synchronously reads and returns the entire contents of a file as an array of bytes. TextDecoder can be used to transform the bytes to string if required. Reading a directory returns an empty data array.

Deno.readLink

Resolves to the full path destination of the named symbolic link.

Deno.readLinkSync

Synchronously returns the full path destination of the named symbolic link.

Deno.readSync

Synchronously read from a resource ID (rid) into an array buffer (buffer).

Deno.readTextFile

Asynchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error.

Deno.readTextFileSync

Synchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error.

Deno.realPath

Resolves to the absolute normalized path, with symbolic links resolved.

Deno.realPathSync

Synchronously returns absolute normalized path, with symbolic links resolved.

Deno.refTimer

Make the timer of the given id block the event loop from finishing.

Deno.remove

Removes the named file or directory.

Deno.removeSignalListener

Removes the given signal listener that has been registered with Deno.addSignalListener.

Deno.removeSync

Synchronously removes the named file or directory.

Deno.rename

Renames (moves) oldpath to newpath. Paths may be files or directories. If newpath already exists and is not a directory, rename() replaces it. OS-specific restrictions may apply when oldpath and newpath are in different directories.

Deno.renameSync

Synchronously renames (moves) oldpath to newpath. Paths may be files or directories. If newpath already exists and is not a directory, renameSync() replaces it. OS-specific restrictions may apply when oldpath and newpath are in different directories.

Deno.resolveDns

Performs DNS resolution against the given query, returning resolved records.

Deno.resources

Returns a map of open resource IDs (rid) along with their string representations. This is an internal API and as such resource representation has unknown type; that means it can change any time and should not be depended upon.

Deno.run

UNSTABLE: New API, yet to be vetted.

Deno.seek

Seek a resource ID (rid) to the given offset under mode given by whence. The call resolves to the new position within the resource (bytes from the start).

Deno.seekSync

Synchronously seek a resource ID (rid) to the given offset under mode given by whence. The new position within the resource (bytes from the start) is returned.

Deno.serve

Serves HTTP requests with the given handler.

Deno.serveHttp

Provides an interface to handle HTTP request and responses over TCP or TLS connections. The method returns an {@link HttpConn} which yields up {@link RequestEvent} events, which utilize the web platform standard Request and Response objects to handle the request.

Deno.shutdown

Shutdown socket send operations.

Deno.startTls

Start TLS handshake from an existing connection using an optional list of CA certificates, and hostname (default is "127.0.0.1"). Specifying CA certs is optional. By default the configured root certificates are used. Using this function requires that the other end of the connection is prepared for a TLS handshake.

Deno.stat

Resolves to a Deno.FileInfo for the specified path. Will always follow symlinks.

Deno.statSync

Synchronously returns a Deno.FileInfo for the specified path. Will always follow symlinks.

Deno.symlink

Creates newpath as a symbolic link to oldpath.

Deno.symlinkSync

Creates newpath as a symbolic link to oldpath.

Deno.systemMemoryInfo

Displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel.

Deno.truncate

Truncates (or extends) the specified file, to reach the specified len. If len is not specified then the entire file contents are truncated.

Deno.truncateSync

Synchronously truncates (or extends) the specified file, to reach the specified len. If len is not specified then the entire file contents are truncated.

Deno.uid

Returns the user id of the process on POSIX platforms. Returns null on Windows.

Deno.umask

UNSTABLE: New API, yet to be vetted.

Deno.unrefTimer

Make the timer of the given id not block the event loop from finishing.

Deno.upgradeHttp

UNSTABLE: New API, yet to be vetted.

Deno.upgradeWebSocket

Upgrade an incoming HTTP request to a WebSocket.

Deno.utime

Changes the access (atime) and modification (mtime) times of a file system object referenced by path. Given times are either in seconds (UNIX epoch time) or as Date objects.

Deno.utimeSync

Synchronously changes the access (atime) and modification (mtime) times of a file system object referenced by path. Given times are either in seconds (UNIX epoch time) or as Date objects.

Deno.watchFs

Watch for file system events against one or more paths, which can be files or directories. These paths must exist already. One user action (e.g. touch test.file) can generate multiple file system events. Likewise, one user action can result in multiple file paths in one event (e.g. mv old_name.txt new_name.txt).

Deno.write

Write to the resource ID (rid) the contents of the array buffer (data).

Deno.writeAll deprecated

Write all the content of the array buffer (arr) to the writer (w).

Deno.writeAllSync deprecated

Synchronously write all the content of the array buffer (arr) to the writer (w).

Deno.writeFile

Write data to the given path, by default creating a new file if needed, else overwriting.

Deno.writeFileSync

Synchronously write data to the given path, by default creating a new file if needed, else overwriting.

Deno.writeSync

Synchronously write to the resource ID (rid) the contents of the array buffer (data).

Deno.writeTextFile

Write string data to the given path, by default creating a new file if needed, else overwriting.

Deno.writeTextFileSync

Synchronously write string data to the given path, by default creating a new file if needed, else overwriting.

§Interfaces

Deno.AtomicCheck

UNSTABLE: New API, yet to be vetted.

Deno.BasicAuth

UNSTABLE: New API, yet to be vetted.

Deno.BenchContext

Context that is passed to a benchmarked function. The instance is shared between iterations of the benchmark. Its methods can be used for example to override of the measured portion of the function.

Deno.BenchDefinition

The interface for defining a benchmark test using Deno.bench.

Deno.CAARecord

If Deno.resolveDns is called with "CAA" record type specified, it will resolve with an array of objects with this interface.

Deno.Closer deprecated

An abstract interface which when implemented provides an interface to close files/resources that were previously opened.

Deno.CommandOptions

Options which can be set when calling Deno.Command.

Deno.CommandOutput

The interface returned from calling Deno.Command.output or Deno.Command.outputSync which represents the result of spawning the child process.

Deno.CommandStatus
Deno.Conn
Deno.ConnectOptions
Deno.ConnectTlsOptions

UNSTABLE: New API, yet to be vetted.

Deno.CreateHttpClientOptions

UNSTABLE: New API, yet to be vetted.

Deno.CronSchedule

UNSTABLE: New API, yet to be vetted.

Deno.DatagramConn

UNSTABLE: New API, yet to be vetted.

Deno.DenoTest
Deno.DirEntry

Information about a directory entry returned from Deno.readDir and Deno.readDirSync.

Deno.DynamicLibrary

UNSTABLE: New API, yet to be vetted.

Deno.Env

An interface containing methods to interact with the process environment variables.

Deno.EnvPermissionDescriptor

The permission descriptor for the allow-env and deny-env permissions, which controls access to being able to read and write to the process environment variables as well as access other information about the environment. The option variable allows scoping the permission to a specific environment variable.

Deno.FfiPermissionDescriptor

The permission descriptor for the allow-ffi and deny-ffi permissions, which controls access to loading foreign code and interfacing with it via the Foreign Function Interface API available in Deno. The option path allows scoping the permission to a specific path on the host.

Deno.FileInfo

Provides information about a file and is returned by Deno.stat, Deno.lstat, Deno.statSync, and Deno.lstatSync or from calling stat() and statSync() on an Deno.FsFile instance.

Deno.ForeignFunction

UNSTABLE: New API, yet to be vetted.

Deno.ForeignLibraryInterface

UNSTABLE: New API, yet to be vetted.

Deno.ForeignStatic

UNSTABLE: New API, yet to be vetted.

Deno.FsEvent

Represents a unique file system event yielded by a Deno.FsWatcher.

Deno.FsWatcher

Returned by Deno.watchFs. It is an async iterator yielding up system events. To stop watching the file system by calling .close() method.

Deno.HrtimePermissionDescriptor

The permission descriptor for the allow-hrtime and deny-hrtime permissions, which controls if the runtime code has access to high resolution time. High resolution time is considered sensitive information, because it can be used by malicious code to gain information about the host that it might not otherwise have access to.

Deno.HttpClient

UNSTABLE: New API, yet to be vetted.

Deno.HttpConn

The async iterable that is returned from Deno.serveHttp which yields up {@link RequestEvent} events, representing individual requests on the HTTP server connection.

Deno.HttpServer

An instance of the server created using Deno.serve() API.

Deno.InspectOptions

Option which can be specified when performing Deno.inspect.

Deno.jupyter.DisplayOptions
Deno.KvCommitError
Deno.KvCommitResult
Deno.KvListOptions

UNSTABLE: New API, yet to be vetted.

Deno.Listener

A generic network listener for stream-oriented protocols.

Deno.ListenOptions
Deno.ListenTlsOptions
Deno.MakeTempOptions

Options which can be set when using Deno.makeTempDir, Deno.makeTempDirSync, Deno.makeTempFile, and Deno.makeTempFileSync.

Deno.MemoryUsage
Deno.Metrics deprecated
Deno.MkdirOptions

Options which can be set when using Deno.mkdir and Deno.mkdirSync.

Deno.MulticastV4Membership

UNSTABLE: New API, yet to be vetted.

Deno.MulticastV6Membership

UNSTABLE: New API, yet to be vetted.

Deno.MXRecord

If Deno.resolveDns is called with "MX" record type specified, it will return an array of objects with this interface.

Deno.NAPTRRecord

If Deno.resolveDns is called with "NAPTR" record type specified, it will return an array of objects with this interface.

Deno.NetAddr
Deno.NetPermissionDescriptor

The permission descriptor for the allow-net and deny-net permissions, which controls access to opening network ports and connecting to remote hosts via the network. The option host allows scoping the permission for outbound connection to a specific host and port.

Deno.NetworkInterfaceInfo

The information for a network interface returned from a call to Deno.networkInterfaces.

Deno.OpenOptions

Options which can be set when doing Deno.open and Deno.openSync.

Deno.OpMetrics deprecated
Deno.PermissionOptionsObject

A set of options which can define the permissions within a test or worker context at a highly specific level.

Deno.PermissionStatusEventMap

The interface which defines what event types are supported by {@link PermissionStatus} instances.

Deno.Proxy

UNSTABLE: New API, yet to be vetted.

Deno.Reader deprecated

An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously.

Deno.ReaderSync deprecated

An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously.

Deno.ReadFileOptions

Options which can be set when using Deno.readFile or Deno.readFileSync.

Deno.ReadPermissionDescriptor

The permission descriptor for the allow-read and deny-read permissions, which controls access to reading resources from the local host. The option path allows scoping the permission to a specific path (and if the path is a directory any sub paths).

Deno.RemoveOptions

Options which can be set when using Deno.remove and Deno.removeSync.

Deno.RequestEvent

The event yielded from an {@link HttpConn} which represents an HTTP request from a remote client.

Deno.ResolveDnsOptions

Options which can be set when using Deno.resolveDns.

Deno.ResourceMap

A map of open resources that Deno is tracking. The key is the resource ID (rid) and the value is its representation.

Deno.RunOptions deprecated
Deno.RunPermissionDescriptor

The permission descriptor for the allow-run and deny-run permissions, which controls access to what sub-processes can be executed by Deno. The option command allows scoping the permission to a specific executable.

Deno.Seeker

An abstract interface which when implemented provides an interface to seek within an open file/resource asynchronously.

Deno.SeekerSync

An abstract interface which when implemented provides an interface to seek within an open file/resource synchronously.

Deno.ServeHandlerInfo

Information for a HTTP request.

Deno.ServeInit
Deno.ServeOptions

Options which can be set when calling Deno.serve.

Deno.ServeTlsOptions

Additional options which are used when opening a TLS (HTTPS) server.

Deno.ServeUnixHandlerInfo

Information for a unix domain socket HTTP request.

Deno.ServeUnixInit
Deno.ServeUnixOptions
Deno.SetRawOptions
Deno.SOARecord

If Deno.resolveDns is called with "SOA" record type specified, it will return an array of objects with this interface.

Deno.SRVRecord

If Deno.resolveDns is called with "SRV" record type specified, it will return an array of objects with this interface.

Deno.StartTlsOptions
Deno.SymlinkOptions

Options that can be used with {@link symlink} and {@link symlinkSync}.

Deno.SysPermissionDescriptor

The permission descriptor for the allow-sys and deny-sys permissions, which controls access to sensitive host system information, which malicious code might attempt to exploit. The option kind allows scoping the permission to a specific piece of information.

Deno.SystemMemoryInfo

Information returned from a call to Deno.systemMemoryInfo.

Deno.TcpConn
Deno.TcpListenOptions
Deno.TestContext

Context that is passed to a testing function, which can be used to either gain information about the current test, or register additional test steps within the current test.

Deno.TestDefinition
Deno.TestStepDefinition
Deno.TlsConn

UNSTABLE: New API, yet to be vetted.

Deno.TlsHandshakeInfo

UNSTABLE: New API, yet to be vetted.

Deno.UdpListenOptions

UNSTABLE: New API, yet to be vetted.

Deno.UnixAddr
Deno.UnixConn
Deno.UnixConnectOptions

UNSTABLE: New API, yet to be vetted.

Deno.UnixListenOptions

UNSTABLE: New API, yet to be vetted.

Deno.UnsafeCallbackDefinition

UNSTABLE: New API, yet to be vetted.

Deno.UnstableRunOptions

UNSTABLE: New API, yet to be vetted.

Deno.UpgradeWebSocketOptions

Options which can be set when performing a Deno.upgradeWebSocket upgrade of a Request

Deno.WebSocketUpgrade

The object that is returned from a Deno.upgradeWebSocket request.

Deno.WriteFileOptions

Options for writing to a file.

Deno.WritePermissionDescriptor

The permission descriptor for the allow-write and deny-write permissions, which controls access to writing to resources from the local host. The option path allow scoping the permission to a specific path (and if the path is a directory any sub paths).

Deno.Writer deprecated

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously.

Deno.WriterSync deprecated

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource synchronously.

§Type Aliases

Deno.Addr
Deno.Cast

This magic code used to implement better type hints for Deno.dlopen

Deno.ConditionalAsync

UNSTABLE: New API, yet to be vetted.

Deno.Const
Deno.CronScheduleExpression

UNSTABLE: New API, yet to be vetted.

Deno.FromForeignFunction

UNSTABLE: New API, yet to be vetted.

Deno.FromNativeParameterTypes

UNSTABLE: New API, yet to be vetted.

Deno.FromNativeResultType

UNSTABLE: New API, yet to be vetted.

Deno.FromNativeType

UNSTABLE: New API, yet to be vetted.

Deno.FsEventFlag

Additional information for FsEvent objects with the "other" kind.

Deno.jupyter.Displayable
Deno.jupyter.MediaBundle

A collection of supported media types and data for Jupyter frontends.

Deno.jupyter.VegaObject
Deno.KvConsistencyLevel

UNSTABLE: New API, yet to be vetted.

Deno.KvEntry

UNSTABLE: New API, yet to be vetted.

Deno.KvEntryMaybe

UNSTABLE: New API, yet to be vetted.

Deno.KvKey

UNSTABLE: New API, yet to be vetted.

Deno.KvKeyPart

UNSTABLE: New API, yet to be vetted.

Deno.KvListSelector

UNSTABLE: New API, yet to be vetted.

Deno.KvMutation

UNSTABLE: New API, yet to be vetted.

Deno.NativeBigIntType

UNSTABLE: New API, yet to be vetted.

Deno.NativeBooleanType

UNSTABLE: New API, yet to be vetted.

Deno.NativeBufferType

UNSTABLE: New API, yet to be vetted.

Deno.NativeFunctionType

UNSTABLE: New API, yet to be vetted.

Deno.NativeI16Enum
Deno.NativeI32Enum
Deno.NativeI8Enum
Deno.NativeNumberType

UNSTABLE: New API, yet to be vetted.

Deno.NativePointerType

UNSTABLE: New API, yet to be vetted.

Deno.NativeResultType

UNSTABLE: New API, yet to be vetted.

Deno.NativeStructType

UNSTABLE: New API, yet to be vetted.

Deno.NativeType

UNSTABLE: New API, yet to be vetted.

Deno.NativeTypedFunction
Deno.NativeTypedPointer
Deno.NativeU16Enum
Deno.NativeU32Enum
Deno.NativeU8Enum
Deno.NativeVoidType

UNSTABLE: New API, yet to be vetted.

Deno.PermissionDescriptor

Permission descriptors which define a permission and can be queried, requested, or revoked.

Deno.PermissionName

The name of a privileged feature which needs permission.

Deno.PermissionOptions

Options which define the permissions within a test or worker context.

Deno.PermissionState

The current status of the permission:

Deno.PointerObject

UNSTABLE: New API, yet to be vetted.

Deno.PointerValue

UNSTABLE: New API, yet to be vetted.

Deno.ProcessStatus deprecated
Deno.RecordType

The type of the resource record to resolve via DNS using Deno.resolveDns.

Deno.ServeHandler

A handler for HTTP requests. Consumes a request and returns a response.

Deno.Server deprecated
Deno.ServeUnixHandler

A handler for unix domain socket HTTP requests. Consumes a request and returns a response.

Deno.Signal

Operating signals which can be listened for or sent to sub-processes. What signals and what their standard behaviors are OS dependent.

Deno.StaticForeignLibraryInterface

UNSTABLE: New API, yet to be vetted.

Deno.StaticForeignSymbol

UNSTABLE: New API, yet to be vetted.

Deno.StaticForeignSymbolReturnType

UNSTABLE: New API, yet to be vetted.

Deno.TlsListener

Specialized listener that accepts TLS connections.

Deno.ToNativeParameterTypes

UNSTABLE: New API, yet to be vetted.

Deno.ToNativeResultType

UNSTABLE: New API, yet to be vetted.

Deno.ToNativeType

UNSTABLE: New API, yet to be vetted.

Deno.UnsafeCallbackFunction

UNSTABLE: New API, yet to be vetted.