Deno - Deno documentation
namespace Deno

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

Classes

c
Deno.AtomicOperation

UNSTABLE: New API, yet to be vetted.

c
Deno.ChildProcess

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

c
Deno.Command

Create a child process.

c
Deno.FsFile

The Deno abstraction for reading and writing files.

c
Deno.Kv

UNSTABLE: New API, yet to be vetted.

c
Deno.KvListIterator

UNSTABLE: New API, yet to be vetted.

c
Deno.KvU64

UNSTABLE: New API, yet to be vetted.

c
Deno.Permissions

Deno's permission management API.

c
Deno.PermissionStatus

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

c
Deno.UnsafeCallback

An unsafe function pointer for passing JavaScript functions as C function pointers to foreign function calls.

c
Deno.UnsafeFnPointer

An unsafe pointer to a function, for calling functions that are not present as symbols.

c
Deno.UnsafePointer

A collection of static functions for interacting with pointer objects.

c
Deno.UnsafePointerView

UNSTABLE: New API, yet to be vetted.

c
Deno.UnsafeWindowSurface

Creates a presentable WebGPU surface from given window and display handles.

c
Deno.Buffer

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

c
Deno.Process

Represents an instance of a sub process that is returned from Deno.run which can be used to manage the sub-process.

Enums

E
Deno.SeekMode

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

Functions

f
Deno.addSignalListener

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

f
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.

f
Deno.chdir

Change the current working directory to the specified path.

f
Deno.chmod

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

f
Deno.chmodSync

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

f
Deno.chown

Change owner of a regular file or directory.

f
Deno.chownSync

Synchronously change owner of a regular file or directory.

f
Deno.connect

Connects to the hostname (default is "127.0.0.1") and port on the named transport (default is "tcp"), and resolves to the connection (Conn).

f
Deno.connectTls

Establishes a secure connection over TLS (transport layer security) using an optional cert file, hostname (default is "127.0.0.1") and port. The cert file is optional and if not included Mozilla's root certificates will be used (see also https://github.com/ctz/webpki-roots for specifics)

f
Deno.consoleSize

Gets the size of the console as columns/rows.

f
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.

f
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.

f
Deno.create

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

f
Deno.createHttpClient

UNSTABLE: New API, yet to be vetted.

f
Deno.createSync

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

f
Deno.cron

UNSTABLE: New API, yet to be vetted.

f
Deno.cwd

Return a string representing the current working directory.

f
Deno.dlopen

Opens an external dynamic library and registers symbols, making foreign functions available to be called.

f
Deno.execPath

Returns the path to the current deno executable.

f
Deno.exit

Exit the Deno process with optional exit code.

f
Deno.fdatasync

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

f
Deno.fdatasyncSync

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

f
Deno.flock

Acquire an advisory file-system lock for the provided file.

f
Deno.flockSync

Acquire an advisory file-system lock synchronously for the provided file.

f
Deno.fsync

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

f
Deno.fsyncSync

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

f
Deno.funlock

Release an advisory file-system lock for the provided file.

f
Deno.funlockSync

Release an advisory file-system lock for the provided file synchronously.

f
Deno.gid

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

f
Deno.hostname

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

f
Deno.inspect

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

f
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. Signal provides the most common signals. Default signal is "SIGTERM".

f
Deno.linkSync

Synchronously creates newpath as a hard link to oldpath.

f
Deno.listen

Listen announces on the local transport address.

f
Deno.listenDatagram

Listen announces on the local transport address.

f
Deno.listenTls

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

f
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.

f
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.

f
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.

f
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.

f
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.

f
Deno.makeTempFile

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

f
Deno.makeTempFileSync

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

f
Deno.memoryUsage

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

f
Deno.mkdir

Creates a new directory with the specified path.

f
Deno.mkdirSync

Synchronously creates a new directory with the specified path.

f
Deno.networkInterfaces

Returns an array of the network interface information.

f
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. The caller may have the resulting file automatically closed by the runtime once it's out of scope by declaring the file variable with the using keyword.

f
Deno.openKv

UNSTABLE: New API, yet to be vetted.

f
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. The caller may have the resulting file automatically closed by the runtime once it's out of scope by declaring the file variable with the using keyword.

f
Deno.osRelease

Returns the release version of the Operating System.

f
Deno.osUptime

Returns the Operating System uptime in number of seconds.

f
Deno.readDir

Reads the directory given by path and returns an async iterable of Deno.DirEntry. The order of entries is not guaranteed.

f
Deno.readDirSync

Synchronously reads the directory given by path and returns an iterable of Deno.DirEntry. The order of entries is not guaranteed.

f
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.

f
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.

f
Deno.readLinkSync

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

f
Deno.readTextFile

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

f
Deno.readTextFileSync

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

f
Deno.realPath

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

f
Deno.realPathSync

Synchronously returns absolute normalized path, with symbolic links resolved.

f
Deno.refTimer

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

f
Deno.remove

Removes the named file or directory.

f
Deno.removeSignalListener

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

f
Deno.removeSync

Synchronously removes the named file or directory.

f
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.

f
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.

f
Deno.resolveDns

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

f
Deno.run

UNSTABLE: New API, yet to be vetted.

f
Deno.serve

Serves HTTP requests with the given handler.

f
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.

f
Deno.stat

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

f
Deno.statSync

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

f
Deno.symlinkSync

Creates newpath as a symbolic link to oldpath.

f
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.

f
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.

f
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.

f
Deno.uid

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

f
Deno.umask

Retrieve the process umask. If mask is provided, sets the process umask. This call always returns what the umask was before the call.

f
Deno.unrefTimer

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

f
Deno.upgradeWebSocket

Upgrade an incoming HTTP request to a WebSocket.

f
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.

f
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.

f
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).

f
Deno.writeFile

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

f
Deno.writeFileSync

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

f
Deno.writeTextFile

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

f
Deno.writeTextFileSync

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

f
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.

f
Deno.copy

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.

f
Deno.fstat

Returns a Deno.FileInfo for the given file stream.

f
Deno.fstatSync

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

f
Deno.ftruncate

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

f
Deno.ftruncateSync

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

f
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.

f
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.

f
Deno.isatty

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

f
Deno.iter

Turns a Reader, r, into an async iterator.

f
Deno.iterSync

Turns a ReaderSync, r, into an iterator.

f
Deno.metrics

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.

f
Deno.read

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

f
Deno.readAll

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

f
Deno.readAllSync

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

f
Deno.readSync

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

f
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.

f
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).

f
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.

f
Deno.serveHttp

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

f
Deno.shutdown

Shutdown socket send operations.

f
Deno.write

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

f
Deno.writeAll

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

f
Deno.writeAllSync

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

f
Deno.writeSync

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

Interfaces

I
Deno.AtomicCheck

UNSTABLE: New API, yet to be vetted.

I
Deno.BasicAuth

UNSTABLE: New API, yet to be vetted.

I
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.

I
Deno.BenchDefinition

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

I
Deno.CAARecord

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

I
Deno.CommandOptions

Options which can be set when calling Deno.Command.

I
Deno.CommandOutput

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

I
Deno.CommandStatus
No documentation available
I
Deno.Conn
No documentation available
I
Deno.ConnectOptions
No documentation available
I
Deno.ConnectTlsOptions
No documentation available
I
Deno.CreateHttpClientOptions

UNSTABLE: New API, yet to be vetted.

I
Deno.CronSchedule

CronSchedule is the interface used for JSON format cron schedule.

I
Deno.DatagramConn

A generic transport listener for message-oriented protocols.

I
Deno.DenoTest
No documentation available
I
Deno.DirEntry

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

I
Deno.DynamicLibrary

UNSTABLE: New API, yet to be vetted.

I
Deno.Env

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

I
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.

I
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.

I
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.

I
Deno.ForeignFunction

The interface for a foreign function as defined by its parameter and result types.

I
Deno.ForeignLibraryInterface

A foreign library interface descriptor.

I
Deno.ForeignStatic
No documentation available
I
Deno.FsEvent

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

I
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.

I
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.

I
Deno.HttpClient

UNSTABLE: New API, yet to be vetted.

I
Deno.HttpServer

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

I
Deno.InspectOptions

Option which can be specified when performing Deno.inspect.

I
Deno.KvCommitError
No documentation available
I
Deno.KvCommitResult
No documentation available
I
Deno.KvListOptions

UNSTABLE: New API, yet to be vetted.

I
Deno.Listener

A generic network listener for stream-oriented protocols.

I
Deno.ListenOptions
No documentation available
I
Deno.ListenTlsOptions
No documentation available
I
Deno.MemoryUsage
No documentation available
I
Deno.MkdirOptions

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

I
Deno.MulticastV4Membership

Represents membership of a IPv4 multicast group.

I
Deno.MulticastV6Membership

Represents membership of a IPv6 multicast group.

I
Deno.MXRecord

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

I
Deno.NAPTRRecord

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

I
Deno.NetAddr
No documentation available
I
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.

I
Deno.NetworkInterfaceInfo

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

I
Deno.OpenOptions

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

I
Deno.PermissionOptionsObject

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

I
Deno.PermissionStatusEventMap

The interface which defines what event types are supported by PermissionStatus instances.

I
Deno.Proxy

UNSTABLE: New API, yet to be vetted.

I
Deno.ReadFileOptions

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

I
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).

I
Deno.RemoveOptions

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

I
Deno.ResolveDnsOptions

Options which can be set when using Deno.resolveDns.

I
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.

I
Deno.Seeker

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

I
Deno.SeekerSync

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

I
Deno.ServeHandlerInfo

Information for a HTTP request.

I
Deno.ServeInit
No documentation available
I
Deno.ServeOptions

Options which can be set when calling Deno.serve.

I
Deno.ServeTlsInit
No documentation available
I
Deno.ServeTlsOptions

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

I
Deno.ServeUnixHandlerInfo

Information for a unix domain socket HTTP request.

I
Deno.ServeUnixInit
No documentation available
I
Deno.ServeUnixOptions
No documentation available
I
Deno.SetRawOptions
No documentation available
I
Deno.SOARecord

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

I
Deno.SRVRecord

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

I
Deno.StartTlsOptions
No documentation available
I
Deno.SymlinkOptions

Options that can be used with symlink and symlinkSync.

I
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.

I
Deno.SystemMemoryInfo

Information returned from a call to Deno.systemMemoryInfo.

I
Deno.TcpConn
No documentation available
I
Deno.TcpListenOptions
No documentation available
I
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.

I
Deno.TestDefinition
No documentation available
I
Deno.TestStepDefinition
No documentation available
I
Deno.TlsCertifiedKeyPem

Provides certified key material from strings. The key material is provided in PEM-format (Privacy Enhanced Mail, https://www.rfc-editor.org/rfc/rfc1422) which can be identified by having -----BEGIN----- and -----END----- markers at the beginning and end of the strings. This type of key is not compatible with DER-format keys which are binary.

I
Deno.TlsConn
No documentation available
I
Deno.TlsHandshakeInfo
No documentation available
I
Deno.UdpListenOptions

UNSTABLE: New API, yet to be vetted.

I
Deno.UnixAddr
No documentation available
I
Deno.UnixConn
No documentation available
I
Deno.UnixConnectOptions
No documentation available
I
Deno.UnixListenOptions

Options which can be set when opening a Unix listener via Deno.listen or Deno.listenDatagram.

I
Deno.UnsafeCallbackDefinition

Definition of a unsafe callback function.

I
Deno.UnstableRunOptions

UNSTABLE: New API, yet to be vetted.

I
Deno.UpgradeWebSocketOptions

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

I
Deno.WebSocketUpgrade

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

I
Deno.WriteFileOptions

Options for writing to a file.

I
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).

I
Deno.Closer

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

I
Deno.HttpConn

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

I
Deno.Metrics
No documentation available
I
Deno.OpMetrics
No documentation available
I
Deno.Reader

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

I
Deno.ReaderSync

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

I
Deno.RequestEvent

The event yielded from an HttpConn which represents an HTTP request from a remote client.

I
Deno.ResourceMap

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

I
Deno.RunOptions

Options which can be used with Deno.run.

I
Deno.TlsCertifiedKeyConnectTls
No documentation available
I
Deno.TlsCertifiedKeyFromFile
No documentation available
I
Deno.Writer

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

I
Deno.WriterSync

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

Namespaces

N
Deno.errors

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

N
Deno.jupyter

A namespace containing runtime APIs available in Jupyter notebooks.

Type Aliases

T
Deno.Addr
No documentation available
T
Deno.ConditionalAsync
No documentation available
T
Deno.CronScheduleExpression

UNSTABLE: New API, yet to be vetted.

T
Deno.FromForeignFunction
No documentation available
T
Deno.FromNativeParameterTypes
No documentation available
T
Deno.FromNativeResultType

Type conversion for foreign symbol return types.

T
Deno.FromNativeType

Type conversion for foreign symbol return types and unsafe callback parameters.

T
Deno.FsEventFlag

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

T
Deno.KvConsistencyLevel

Consistency level of a KV operation.

T
Deno.KvEntry

UNSTABLE: New API, yet to be vetted.

T
Deno.KvEntryMaybe

UNSTABLE: New API, yet to be vetted.

T
Deno.KvKey

UNSTABLE: New API, yet to be vetted.

T
Deno.KvKeyPart

UNSTABLE: New API, yet to be vetted.

T
Deno.KvListSelector

UNSTABLE: New API, yet to be vetted.

T
Deno.KvMutation

UNSTABLE: New API, yet to be vetted.

T
Deno.NativeBigIntType

All BigInt number types for interfacing with foreign functions.

T
Deno.NativeBooleanType

The native boolean type for interfacing to foreign functions.

T
Deno.NativeBufferType

The native buffer type for interfacing to foreign functions.

T
Deno.NativeFunctionType

The native function type for interfacing with foreign functions.

T
Deno.NativeI16Enum
No documentation available
T
Deno.NativeI32Enum
No documentation available
T
Deno.NativeI8Enum
No documentation available
T
Deno.NativeNumberType

All plain number types for interfacing with foreign functions.

T
Deno.NativePointerType

The native pointer type for interfacing to foreign functions.

T
Deno.NativeResultType
No documentation available
T
Deno.NativeStructType

The native struct type for interfacing with foreign functions.

T
Deno.NativeType

All supported types for interfacing with foreign functions.

T
Deno.NativeTypedFunction
No documentation available
T
Deno.NativeTypedPointer
No documentation available
T
Deno.NativeU16Enum
No documentation available
T
Deno.NativeU32Enum
No documentation available
T
Deno.NativeU8Enum
No documentation available
T
Deno.NativeVoidType

The native void type for interfacing with foreign functions.

T
Deno.PermissionDescriptor

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

T
Deno.PermissionName

The name of a privileged feature which needs permission.

T
Deno.PermissionOptions

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

T
Deno.PermissionState

The current status of the permission:

T
Deno.PointerObject

UNSTABLE: New API, yet to be vetted.

T
Deno.PointerValue

UNSTABLE: New API, yet to be vetted.

T
Deno.RecordType

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

T
Deno.ServeHandler

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

T
Deno.ServeUnixHandler

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

T
Deno.Signal

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

T
Deno.StaticForeignLibraryInterface

A utility type that infers a foreign library interface.

T
Deno.StaticForeignSymbol

A utility type that infers a foreign symbol.

T
Deno.StaticForeignSymbolReturnType
No documentation available
T
Deno.TcpListener

Specialized listener that accepts TCP connections.

T
Deno.TlsCertifiedKeyOptions

Provides TLS certified keys, ie: a key that has been certified by a trusted certificate authority. A certified key generally consists of a private key and certificate part.

T
Deno.TlsListener

Specialized listener that accepts TLS connections.

T
Deno.ToNativeParameterTypes

A utility type for conversion of parameter types of foreign functions.

T
Deno.ToNativeResultType

Type conversion for unsafe callback return types.

T
Deno.ToNativeType

Type conversion for foreign symbol parameters and unsafe callback return types.

T
Deno.UnixListener

Specialized listener that accepts Unix connections.

T
Deno.UnsafeCallbackFunction

An unsafe callback function.

T
Deno.ProcessStatus

The status resolved from the .status() method of a Deno.Process instance.

T
Deno.Server
No documentation available

Variables

v
Deno.args

Returns the script arguments to the program.

v
Deno.brand
No documentation available
v
Deno.build

Information related to the build of the current Deno runtime.

v
Deno.env

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

v
Deno.exitCode

The exit code for the Deno process.

v
Deno.mainModule

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

v
Deno.noColor

Reflects the NO_COLOR environment variable at program start.

v
Deno.permissions

Deno's permission management API.

v
Deno.pid

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

v
Deno.ppid

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

v
Deno.stderr

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

v
Deno.stdin

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

v
Deno.stdout

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

v
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.

v
Deno.version

Version information related to the current Deno CLI runtime environment.

v
Deno.customInspect

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.

v
Deno.File

The Deno abstraction for reading and writing files.