The global namespace where Deno specific, non-standard APIs are located.
Classes
A variable-sized buffer of bytes with |
|
The interface for handling a child process returned from
|
|
Create a child process. |
|
The Deno abstraction for reading and writing files. |
|
An |
|
Deno's permission management API. |
|
|
Enums
A enum which defines the seek mode for IO related APIs that support seeking. |
Functions
Registers the given function as a listener of the given signal event. |
|
Register a benchmark test which will be run when |
|
Change the current working directory to the specified path. |
|
Changes the permission of a specific file/directory of specified path. Ignores the process's umask. |
|
Synchronously changes the permission of a specific file/directory of specified path. Ignores the process's umask. |
|
Change owner of a regular file or directory. |
|
Synchronously change owner of a regular file or directory. |
|
Close the given resource ID ( |
|
Connects to the hostname (default is "127.0.0.1") and port on the named
transport (default is "tcp"), and resolves to the connection ( |
|
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) |
|
Gets the size of the console as columns/rows. |
|
Copies from |
|
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. |
|
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. |
|
Creates a file if none exists or truncates an existing file and resolves to
an instance of |
|
Creates a file if none exists or truncates an existing file and returns
an instance of |
|
f
Deno.cwd
|
Return a string representing the current working directory. |
Returns the path to the current deno executable. |
|
Exit the Deno process with optional exit code. |
|
Flushes any pending data operations of the given file stream to disk. |
|
Synchronously flushes any pending data operations of the given file stream to disk. |
|
Returns a |
|
Synchronously returns a |
|
Flushes any pending data and metadata operations of the given file stream to disk. |
|
Synchronously flushes any pending data and metadata operations of the given file stream to disk. |
|
Truncates or extends the specified file stream, to reach the specified
|
|
Synchronously truncates or extends the specified file stream, to reach the
specified |
|
Changes the access ( |
|
Synchronously changes the access ( |
|
f
Deno.gid
|
Returns the group id of the process on POSIX platforms. Returns null on windows. |
Get the |
|
Converts the input into a string that has the same format as printed by
|
|
Check if a given resource id ( |
|
Turns a Reader, |
|
Turns a ReaderSync, |
|
Send a signal to process under given |
|
Creates |
|
Synchronously creates |
|
Listen announces on the local transport address. |
|
Listen announces on the local transport address over TLS (transport layer security). |
|
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. |
|
Resolves to a |
|
Synchronously returns a |
|
Creates a new temporary directory in the default directory for temporary
files, unless |
|
Synchronously creates a new temporary directory in the default directory
for temporary files, unless |
|
Creates a new temporary file in the default directory for temporary
files, unless |
|
Synchronously creates a new temporary file in the default directory for
temporary files, unless |
|
Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes. |
|
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. |
|
Creates a new directory with the specified path. |
|
Synchronously creates a new directory with the specified path. |
|
Returns an array of the network interface information. |
|
Open a file and resolve to an instance of |
|
Synchronously open a file and return an instance of
|
|
Returns the release version of the Operating System. |
|
Returns the Operating System uptime in number of seconds. |
|
Read from a resource ID ( |
|
Read Reader |
|
Synchronously reads Reader |
|
Reads the directory given by |
|
Synchronously reads the directory given by |
|
Reads and resolves to the entire contents of a file as an array of bytes.
|
|
Synchronously reads and returns the entire contents of a file as an array
of bytes. |
|
Resolves to the full path destination of the named symbolic link. |
|
Synchronously returns the full path destination of the named symbolic link. |
|
Synchronously read from a resource ID ( |
|
Asynchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. |
|
Synchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. |
|
Resolves to the absolute normalized path, with symbolic links resolved. |
|
Synchronously returns absolute normalized path, with symbolic links resolved. |
|
Make the timer of the given |
|
Removes the named file or directory. |
|
Removes the given signal listener that has been registered with
|
|
Synchronously removes the named file or directory. |
|
Renames (moves) |
|
Synchronously renames (moves) |
|
Performs DNS resolution against the given query, returning resolved records. |
|
Returns a map of open resource IDs (rid) along with their string
representations. This is an internal API and as such resource
representation has |
|
f
Deno.run
|
|
Seek a resource ID ( |
|
Synchronously seek a resource ID ( |
|
Serves HTTP requests with the given handler. |
|
Provides an interface to handle HTTP request and responses over TCP or TLS
connections. The method returns an |
|
Shutdown socket send operations. |
|
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. |
|
Resolves to a |
|
Synchronously returns a |
|
Creates |
|
Creates |
|
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. |
|
Truncates (or extends) the specified file, to reach the specified |
|
Synchronously truncates (or extends) the specified file, to reach the
specified |
|
f
Deno.uid
|
Returns the user id of the process on POSIX platforms. Returns null on Windows. |
Make the timer of the given |
|
Upgrade an incoming HTTP request to a WebSocket. |
|
Changes the access ( |
|
Synchronously changes the access ( |
|
Watch for file system events against one or more |
|
Write to the resource ID ( |
|
Write all the content of the array buffer ( |
|
Synchronously write all the content of the array buffer ( |
|
Write |
|
Synchronously write |
|
Synchronously write to the resource ID ( |
|
Write string |
|
Synchronously write string |
Interfaces
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. |
|
The interface for defining a benchmark test using |
|
If |
|
An abstract interface which when implemented provides an interface to close files/resources that were previously opened. |
|
Options which can be set when calling |
|
The interface returned from calling |
|
Information about a directory entry returned from |
|
I
Deno.Env
|
An interface containing methods to interact with the process environment variables. |
The permission descriptor for the |
|
The permission descriptor for the |
|
Provides information about files and allows JavaScript in a web page to access their content. |
|
Provides information about a file and is returned by
|
|
Represents a unique file system event yielded by a
|
|
Returned by |
|
The permission descriptor for the |
|
The async iterable that is returned from |
|
Option which can be specified when performing |
|
A generic network listener for stream-oriented protocols. |
|
If |
|
Options which can be set when using |
|
Options which can be set when using |
|
If |
|
The permission descriptor for the |
|
The information for a network interface returned from a call to
|
|
Options which can be set when doing |
|
A set of options which can define the permissions within a test or worker context at a highly specific level. |
|
The interface which defines what event types are supported by
|
|
Options which can be set when using |
|
The permission descriptor for the |
|
An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously. |
|
An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously. |
|
Options which can be set when using |
|
The event yielded from an |
|
Options which can be set when using |
|
The permission descriptor for the |
|
If |
|
If |
|
An abstract interface which when implemented provides an interface to seek within an open file/resource asynchronously. |
|
An abstract interface which when implemented provides an interface to seek within an open file/resource synchronously. |
|
Information for a HTTP request. |
|
Options which can be set when calling |
|
Additional options which are used when opening a TLS (HTTPS) server. |
|
An instance of the server created using |
|
Options that can be used with |
|
The permission descriptor for the |
|
Information returned from a call to |
|
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. |
|
Options which can be set when performing a
|
|
The object that is returned from a |
|
Options for writing to a file. |
|
The permission descriptor for the |
|
An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously. |
|
An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource synchronously. |
Namespaces
A set of error constructors that are raised by Deno APIs. |
Type Aliases
Additional information for FsEvent objects with the "other" kind. |
|
Permission descriptors which define a permission and can be queried, requested, or revoked. |
|
The name of a privileged feature which needs permission. |
|
Options which define the permissions within a test or worker context. |
|
The current status of the permission: |
|
The type of the resource record to resolve via DNS using
|
|
A handler for HTTP requests. Consumes a request and returns a response. |
|
Operating signals which can be listened for or sent to sub-processes. What signals and what their standard behaviors are OS dependent. |
|
Specialized listener that accepts TLS connections. |
Variables
The Deno abstraction for reading and writing files. |
|
Returns the script arguments to the program. |
|
Information related to the build of the current Deno runtime. |
|
A symbol which can be used as a key for a custom method which will be
called when |
|
v
Deno.env
|
An interface containing methods to interact with the process environment variables. |
The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD. |
|
Reflects the |
|
Deno's permission management API. |
|
v
Deno.pid
|
The current process ID of this instance of the Deno CLI. |
The process ID of parent process of this instance of the Deno CLI. |
|
A reference to |
|
A reference to |
|
A reference to |
|
Version information related to the current Deno CLI runtime environment. |