import { Deno } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";
Classes
A variable-sized buffer of bytes with | |
The Deno abstraction for reading and writing files. | |
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 | |
A set of error constructors that are raised by Deno APIs. | |
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. | |
A handle for | |
A handle for | |
A handle for | |
Version related information. |
Functions
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) | |
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 | |
Return a string representing the current working directory. | |
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. | |
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. | |
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, | |
Creates | |
Synchronously creates | |
Listen announces on the local transport address. | |
Listen announces on the local transport address over TLS (transport layer security). | |
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 | |
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 | |
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. | |
Removes the named file or directory. | |
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 ( | |
Shutdown socket send operations. | |
Resolves to a | |
Synchronously returns a | |
Creates | |
Creates | |
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 | |
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
A FileInfo describes a file and is returned by | |
A generic network listener for stream-oriented protocols. | |
Options for writing to a file. | |
Type Aliases
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. | |