import { deno } from "https://deno.land/x/denoversion@v1.0.2/lib/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
Reflects the NO_COLOR enviromental variable: https://no-color.org/ | |
process id | |
An instance of | |
An instance of | |
An instance of |
Functions
chdir() Change the current working directory to path. throws NotFound exception if directory not available | |
Changes the permission of a specific file/directory of specified path. | |
Changes the permission of a specific file/directory of specified path synchronously. | |
Close the file ID. | |
RESERVED | |
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. | |
cwd() Return a string representing the current working directory. If the current directory can be reached via multiple paths (due to symbolic links), cwd() may return any one of them. throws NotFound exception if directory not available | |
Create a wrapper around a promise that could be resolved externally. TODO Do not expose this from "deno" namespace. | |
Dial connects to the address on the named network. | |
Mixes in a DOM iterable methods into a base class, assumes that there is
a private data iterable that is part of the base class, located at
| |
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 | |
Exit the Deno process with optional exit code. | |
inspect() converts input into string that has the same format as printed by console.log(...); | |
Check if running in terminal. | |
Listen announces on the local network address. | |
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 | |
Read from a file ID into an array buffer. | |
Read | |
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. | |
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. | |
Queries the file system for information on the path provided. | |
Queries the file system for information on the path provided synchronously.
| |
TODO Do not expose this from "deno" namespace. | |
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. | |
Write to the file ID the contents of the array buffer. | |
Write a new file, with given filename and data. | |
Write a new file, with given filename and data synchronously. |
Interfaces
A FileInfo describes a file and is returned by | |
A Listener is a generic network listener for stream-oriented protocols. | |