Namespaces
A set of error constructors that are raised by Deno APIs. |
Classes
The Deno abstraction for reading and writing files. | |
A custom HttpClient for use with | |
UNSTABLE: Unsafe and new API, beware! | |
UNSTABLE: Unsafe and new API, beware! |
Enums
The log category for a diagnostic message. | |
Variables
Returns the script arguments to the program. If for example we run a program: | |
Build related information. | |
A symbol which can be used as a key for a custom method which will be
called when | |
The URL of the entrypoint module entered from the command-line. | |
Reflects the | |
Deno's permission management API. | |
The current process id of the runtime. | |
The pid of the current process's parent. | |
A handle for | |
A handle for | |
A handle for | |
Version related information. |
Functions
UNSTABLE: new API, yet to be vetted. | |
UNSTABLE: new API, yet to be vetted. | |
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. This functionality is not available on Windows. | |
Synchronously change owner of a regular file or directory. This functionality is not available on Windows. | |
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. | |
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 | |
Create a custom HttpClient for to use with | |
Creates a file if none exists or truncates an existing file and returns
an instance of | |
Return a string representing the current working directory. | |
UNSTABLE: Unsafe and new API, beware! | |
UNSTABLE: new API, yet to be vetted. | |
Returns the path to the current deno executable. | |
Exit the Deno process with optional exit code. If no exit code is supplied then Deno will exit with return code of 0. | |
Flushes any pending data operations of the given file stream to disk. | |
UNSTABLE: New API should be tested first. | |
UNSTABLE: New API should be tested first. | |
UNSTABLE: new API, yet to be vetted. | |
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 | |
UNSTABLE: New API should be tested first. | |
UNSTABLE: New API should be tested first. | |
UNSTABLE: needs investigation into high precision time. | |
UNSTABLE: needs investigation into high precision time. | |
UNSTABLE: New API, yet to be vetted. Additional consideration is still necessary around the permissions required. | |
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. | |
UNSTABLE: new API, yet to be vetted | |
Listen announces on the local transport address over TLS (transport layer security). | |
Unstable There are questions around which permission this needs. And maybe should be renamed (loadAverage?) | |
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 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 and Deno Rust. | |
Creates a new directory with the specified path. | |
Synchronously creates a new directory with the specified path. | |
Open a file and resolve to an instance of | |
Synchronously open a file and return an instance of | |
Unstable new API. yet to be vetted. Under consideration to possibly move to Deno.build or Deno.versions and if it should depend sys-info, which may not be desireable. | |
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. | |
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 utf8 encoded string. Reading a directory throws an error. | |
Synchronously reads and returns the entire contents of a file as utf8 encoded string. Reading a directory throws an error. | |
Resolves to the absolute normalized path, with symbolic links resolved. | |
Returns absolute normalized path, with symbolic links resolved. | |
UNSTABLE: new API, yet to be vetted. | |
Removes the named file or directory. | |
UNSTABLE: new API, yet to be vetted. | |
Synchronously removes the named file or directory. | |
Renames (moves) | |
Synchronously renames (moves) | |
Returns a map of open resource ids (rid) along with their string
representations. This is an internal API and as such resource
representation has | |
Spawns new subprocess. RunOptions must contain at a minimum the | |
Seek a resource ID ( | |
Synchronously seek a resource ID ( | |
Services HTTP requests given a TCP or TLS socket. | |
UNSTABLE: new API, yet to be vetted | |
Shutdown socket send operations. | |
UNSTABLE*: new API, yet to be vetted. | |
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 | |
Unstable new API. yet to be vetted. | |
Register a test which will be run when | |
Truncates or extends the specified file, to reach the specified | |
Synchronously truncates or extends the specified file, to reach the
specified | |
UNSTABLE: New API, yet to be vetted. This API is under consideration to determine if permissions are required to call it. | |
UNSTABLE: new API, yet to be vetted. | |
Used to upgrade an incoming HTTP request to a WebSocket. | |
UNSTABLE: needs investigation into high precision time. | |
UNSTABLE: needs investigation into high precision time. | |
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 ( | |
Asynchronously write string | |
Synchronously write string |
Interfaces
UNSTABLE: new API, yet to be vetted. | |
The options used when creating a [HttpClient]. | |
UNSTABLE: new API, yet to be vetted. | |
A dynamic library resource | |
UNSTABLE: new API, yet to be vetted. | |
UNSTABLE: new API, yet to be vetted. | |
A FileInfo describes a file and is returned by | |
A foreign function as defined by its parameter and result types | |
FsWatcher is returned by | |
A generic network listener for stream-oriented protocols. | |
If | |
If | |
UNSTABLE: New option, yet to be vetted. | |
UNSTABLE: New option, yet to be vetted. | |
Specialized listener that accepts TLS connections. | |
Options for writing to a file. | |
Type Aliases
Additional information for FsEvent objects with the "other" kind. | |
All possible types for interfacing with foreign functions | |
Permission descriptors which define a permission and can be queried, requested, or revoked. | |
The name of a "powerful feature" which needs permission. | |
The current status of the permission. | |
The type of the resource record. Only the listed types are supported currently. | |