import { Deno } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
Classes
A Buffer is a variable-sized buffer of bytes with read() and write() methods. Based on https://golang.org/pkg/bytes/#Buffer | |
A Deno specific error. The | |
The Deno abstraction for reading and writing files. | |
Variables
A symbol which can be used as a key for a custom method which will be called
when | |
Reflects the NO_COLOR environment variable: https://no-color.org/ | |
The current process id of the runtime. | |
Signals numbers. This is platform dependent. | |
An instance of | |
An instance of | |
An instance of | |
Functions
Given a current location in a module, lookup the source location and return it. | |
| |
Changes the permission of a specific file/directory of specified path. | |
Changes the permission of a specific file/directory of specified path synchronously. | |
Change owner of a regular file or directory asynchronously. Unix only at the moment. | |
Change owner of a regular file or directory synchronously. Unix only at the moment. | |
Close the file ID. | |
Copies from | |
Copies the contents of a file to another by name. | |
Copies the contents of a file to another by name synchronously. Creates a new file if target does not exists, and if target exists, overwrites original content of the target file. | |
| |
Dial connects to the address on the named transport. | |
dialTLS establishes a secure connection over TLS (transport layer security). | |
Returns the user and platform specific directories.
Requires the | |
Returns a snapshot of the environment variables at invocation. Mutating a
property in the object will set that variable in the environment for
the process. The environment object will only accept | |
Returns the path to the current deno executable.
Requires the | |
Exit the Deno process with optional exit code. | |
Get the hostname.
Requires the | |
| |
Check if running in terminal. | |
Send a signal to process under given PID. Unix only at this moment.
If pid is negative, the signal will be sent to the process group identified
by -pid.
Requires the | |
Creates | |
Synchronously creates | |
Listen announces on the local transport address. | |
Listen announces on the local transport address over TLS (transport layer security). | |
Queries the file system for information on the path provided. If the given path is a symlink information about the symlink will be returned. | |
Queries the file system for information on the path provided synchronously. If the given path is a symlink information about the symlink will be returned. | |
makeTempDir creates a new temporary directory in the directory | |
makeTempDirSync is the synchronous version of | |
Receive metrics from the privileged side of Deno. | |
Creates a new directory with the specified path.
If | |
Creates a new directory with the specified path synchronously.
If | |
Open a file and return an instance of the | |
Open and initalize a plugin.
Requires the | |
Open a file and return an instance of the | |
Read from a file ID into an array buffer. | |
Read | |
Read synchronously | |
Reads the directory given by path and returns a list of file info. | |
Reads the directory given by path and returns a list of file info synchronously. | |
Read the entire contents of a file. | |
Read the entire contents of a file synchronously. | |
Returns the destination of the named symbolic link. | |
Returns the destination of the named symbolic link synchronously. | |
Read synchronously from a file ID into an array buffer. | |
Returns absolute normalized path with symbolic links resolved. | |
Returns absolute normalized path with symbolic links resolved synchronously. | |
Removes the named file or directory. Would throw error if
permission denied, not found, or directory not empty if | |
Removes the named file or directory synchronously. Would throw
error if permission denied, not found, or directory not empty if | |
Renames (moves) | |
Synchronously renames (moves) | |
Returns a map of open file like resource ids along with their string representation. | |
Spawns new subprocess. | |
Seek a file ID to the given offset under mode given by | |
Seek a file ID synchronously to the given offset under mode given by | |
Shut down socket send and receive operations. | |
Queries the file system for information on the path provided. | |
Queries the file system for information on the path provided synchronously.
| |
Creates | |
Synchronously creates | |
Turns | |
Truncates or extends the specified file, updating the size of this file to become size. | |
Truncates or extends the specified file synchronously, updating the size of this file to become size. | |
Changes the access and modification times of a file system object
referenced by | |
Synchronously changes the access and modification times of a file system
object referenced by | |
Write to the file ID the contents of the array buffer. | |
Write all the content of | |
Write synchronously all the content of | |
Write a new file, with given filename and data. | |
Write a new file, with given filename and data synchronously. | |
Write synchronously to the file ID the contents of the array buffer. |
Interfaces
A FileInfo describes a file and is returned by | |
A Listener is a generic network listener for stream-oriented protocols. | |
Options for writing to a file.
| |