Namespaces
A set of error constructors that are raised by Deno APIs. |
Classes
A variable-sized buffer of bytes with | |
The Deno abstraction for reading and writing files. | |
The Deno abstraction for reading and writing files. | |
A custom HttpClient for use with | |
An unsafe function pointer for passing JavaScript functions as C function pointers to ffi calls. | |
An unsafe pointer to a function, for calling functions that are not present as symbols. | |
An unsafe pointer to a memory location for passing and returning pointers to and from the FFI. | |
An unsafe pointer view to a memory location as specified by the |
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
Registers the given function as a listener of the given signal event. | |
Register a bench 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. 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. | |
Opens a dynamic library and registers symbols | |
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. | |
Synchronously flushes any pending data operations of the given file stream to disk. | |
Acquire an advisory file-system lock for the provided file. | |
Acquire an advisory file-system lock for the provided file. | |
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 | |
Release an advisory file-system lock for the provided file. | |
Release an advisory file-system lock for the provided file. | |
Changes the access ( | |
Synchronously changes the access ( | |
Returns the group id of the process on POSIX platforms. Returns null on windows. | |
Returns the user 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. | |
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 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. | |
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. | |
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. | |
Make the timer of the given id blocking the event loop from finishing. | |
Removes the named file or directory. | |
Removes the given signal listener that has been registered with Deno.addSignalListener. | |
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. | |
Set TTY to be under raw mode or not. In raw mode, characters are read and returned as is, without being processed. All special processing of characters by the terminal is disabled, including echoing input characters. Reading from a TTY device in raw mode is faster than reading from a TTY device in canonical mode. | |
Shutdown socket send operations. | |
Executes a subprocess, waiting for it to finish and
collecting all of its output.
Will throw an error if | |
Spawns a child process. | |
Synchronously executes a subprocess, waiting for it to finish and
collecting all of its output.
Will throw an error if | |
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. | |
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 | |
Retrieve the process umask. If | |
Make the timer of the given id not blocking the event loop from finishing. | |
Allows "hijacking" the connection that the request is associated with. This can be used to implement protocols that build on top of HTTP (eg. WebSockets). | |
Allows "hijacking" the connection that the request is associated with. This can be used to implement protocols that build on top of HTTP (eg. WebSockets). | |
Used to 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 ( | |
Asynchronously write string | |
Synchronously write string |
Interfaces
If | |
The options used when creating a [HttpClient]. | |
A generic transport listener for message-oriented protocols. | |
A dynamic library resource | |
A FileInfo describes a file and is returned by | |
A foreign function as defined by its parameter and result types. | |
A foreign library interface descriptor. | |
FsWatcher is returned by | |
If | |
If | |
The information of the network interface. | |
If | |
If | |
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. | |
Pointer type depends on the architecture and actual pointer value. | |
The type of the resource record. Only the listed types are supported currently. | |
A handler for HTTP requests. Consumes a request and returns a response. | |