$ModuleDeno class
- Available extensions
- Annotations
-
- @JS('Deno')
- @staticInterop
Constructors
Properties
-
args
→ List<
String> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns the script arguments to the program.no setter -
bench
→ ({void Function(BenchDefinition b) $1, void Function(FutureOr<
void> fn(BenchContext)) $2, void Function(String name, FutureOr<void> fn(BenchContext)) $3, void Function(dynamic options, FutureOr<void> fn(BenchContext)) $4, void Function(dynamic options, FutureOr<void> fn(BenchContext)) $5, void Function(String name, dynamic options, FutureOr<void> fn(BenchContext)) $6}) -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Overload accessor: $1, $2, $3, $4, $5, $6no setter - build → dynamic
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Information related to the build of the current Deno runtime.no setter - customInspect → Symbol
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
A symbol which can be used as a key for a custom method which will be called whenDeno.inspect()
is called, or when the object is logged to the console.no setter - env → Env
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
An interface containing methods to interact with the process environment variables.no setter - errors → $ModuleErrors
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
no setter - file → dynamic
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
The Deno abstraction for reading and writing files.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- mainModule → String
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.no setter - noColor → bool
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Reflects theNO_COLOR
environment variable at program start.no setter - permissions → Permissions
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Deno's permission management API.no setter - pid → num
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
The current process ID of this instance of the Deno CLI.no setter - ppid → num
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
The process ID of parent process of this instance of the Deno CLI.no setter -
resolveDns
→ ({Future<
List< Function(String query, ResolveDns recordType, [ResolveDnsOptions? options]) $1, Future<String> >List< Function(String query, String recordType, [ResolveDnsOptions? options]) $2, Future<CAARecord> >List< Function(String query, String recordType, [ResolveDnsOptions? options]) $3, Future<MXRecord> >List< Function(String query, String recordType, [ResolveDnsOptions? options]) $4, Future<NAPTRRecord> >List< Function(String query, String recordType, [ResolveDnsOptions? options]) $5, Future<SOARecord> >List< Function(String query, String recordType, [ResolveDnsOptions? options]) $6, Future<SRVRecord> >List< Function(String query, String recordType, [ResolveDnsOptions? options]) $7, Future<List< >String> >Object> Function(String query, RecordType recordType, [ResolveDnsOptions? options]) $8}) -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Overload accessor: $1, $2, $3, $4, $5, $6, $7, $8no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serve → ({Server Function(ServeHandler handler) $1, Server Function(Object options) $2, Server Function(Object options, ServeHandler handler) $3})
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Overload accessor: $1, $2, $3no setter - stderr → _Intersection51
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
A reference tostderr
which can be used to write directly tostderr
. It implements the Deno specific {@linkcode Writer}, {@linkcode WriterSync}, and {@linkcode Closer} interfaces as well as provides a {@linkcode WritableStream} interface.no setter - stdin → _Intersection49
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
A reference tostdin
which can be used to read directly fromstdin
. It implements the Deno specific {@linkcode Reader}, {@linkcode ReaderSync}, and {@linkcode Closer} interfaces as well as provides a {@linkcode ReadableStream} interface.no setter - stdout → _Intersection50
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
A reference tostdout
which can be used to write directly tostdout
. It implements the Deno specific {@linkcode Writer}, {@linkcode WriterSync}, and {@linkcode Closer} interfaces as well as provides a {@linkcode WritableStream} interface.no setter - test → DenoTest
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
no setter - version → dynamic
-
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Version information related to the current Deno CLI runtime environment.no setter
Methods
-
addSignalListener(
Signal signal, void handler()) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Registers the given function as a listener of the given signal event. -
chdir(
Object directory) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Change the current working directory to the specified path. -
chmod(
Object path, num mode) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Changes the permission of a specific file/directory of specified path. Ignores the process's umask. -
chmodSync(
Object path, num mode) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously changes the permission of a specific file/directory of specified path. Ignores the process's umask. -
chown(
Object path, [num? uid, num? gid]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Change owner of a regular file or directory. -
chownSync(
Object path, [num? uid, num? gid]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously change owner of a regular file or directory. -
close(
num rid) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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. -
connect(
ConnectOptions options) → Future< TcpConn> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Connects to the hostname (default is "127.0.0.1") and port on the named transport (default is "tcp"), and resolves to the connection (Conn
). -
connectTls(
ConnectTlsOptions options) → Future< TlsConn> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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) -
consoleSize(
) → IInline4 -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Gets the size of the console as columns/rows. -
copy(
Reader src, Writer dst, [IInline1? options]) → Future< num> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Copies fromsrc
todst
until either EOF (null
) is read fromsrc
or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying. -
copyFile(
Object fromPath, Object toPath) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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. -
copyFileSync(
Object fromPath, Object toPath) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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. -
create(
Object path) → Future< FsFile> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Creates a file if none exists or truncates an existing file and resolves to an instance of {@linkcode Deno.FsFile}. -
createSync(
Object path) → FsFile -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Creates a file if none exists or truncates an existing file and returns an instance of {@linkcode Deno.FsFile}. -
cwd(
) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Return a string representing the current working directory. -
execPath(
) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns the path to the current deno executable. -
exit(
[num? code]) → Never -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Exit the Deno process with optional exit code. -
fdatasync(
num rid) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Flushes any pending data operations of the given file stream to disk. -
fdatasyncSync(
num rid) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously flushes any pending data operations of the given file stream to disk. -
fstat(
num rid) → Future< FileInfo> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns aDeno.FileInfo
for the given file stream. -
fstatSync(
num rid) → FileInfo -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously returns a {@linkcode Deno.FileInfo} for the given file stream. -
fsync(
num rid) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Flushes any pending data and metadata operations of the given file stream to disk. -
fsyncSync(
num rid) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously flushes any pending data and metadata operations of the given file stream to disk. -
ftruncate(
num rid, [num? len]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Truncates or extends the specified file stream, to reach the specifiedlen
. -
ftruncateSync(
num rid, [num? len]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously truncates or extends the specified file stream, to reach the specifiedlen
. -
futime(
num rid, Object atime, Object mtime) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Changes the access (atime
) and modification (mtime
) times of a file stream resource referenced byrid
. Given times are either in seconds (UNIX epoch time) or asDate
objects. -
futimeSync(
num rid, Object atime, Object mtime) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously changes the access (atime
) and modification (mtime
) times of a file stream resource referenced byrid
. Given times are either in seconds (UNIX epoch time) or asDate
objects. -
gid(
) → num? -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns the group id of the process on POSIX platforms. Returns null on windows. -
hostname(
) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Get thehostname
of the machine the Deno process is running on. -
inspect(
[Object? value, InspectOptions? options]) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Converts the input into a string that has the same format as printed byconsole.log()
. -
isatty(
num rid) → bool -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Check if a given resource id (rid
) is a TTY (a terminal). -
iter(
Reader r, [IInline2? options]) → AsyncIterableIterator< Uint8List> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Turns a Reader,r
, into an async iterator. -
iterSync(
ReaderSync r, [IInline3? options]) → IterableIterator< Uint8List> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Turns a ReaderSync,r
, into an iterator. -
kill(
num pid, [Signal? signo]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Send a signal to process under givenpid
. The value and meaning of thesignal
to the process is operating system and process dependant. {@linkcode Signal} provides the most common signals. Default signal is"SIGTERM"
. -
link(
String oldpath, String newpath) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Createsnewpath
as a hard link tooldpath
. -
linkSync(
String oldpath, String newpath) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously createsnewpath
as a hard link tooldpath
. -
listen(
Object options) → Listener< Conn> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Listen announces on the local transport address. -
listenTls(
ListenTlsOptions options) → TlsListener -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Listen announces on the local transport address over TLS (transport layer security). -
loadavg(
) → List< num> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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. -
lstat(
Object path) → Future< FileInfo> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Resolves to a {@linkcode Deno.FileInfo} for the specifiedpath
. Ifpath
is a symlink, information for the symlink will be returned instead of what it points to. -
lstatSync(
Object path) → FileInfo -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously returns a {@linkcode Deno.FileInfo} for the specifiedpath
. Ifpath
is a symlink, information for the symlink will be returned instead of what it points to. -
makeTempDir(
[MakeTempOptions? options]) → Future< String> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Creates a new temporary directory in the default directory for temporary files, unlessdir
is specified. Other optional options include prefixing and suffixing the directory name withprefix
andsuffix
respectively. -
makeTempDirSync(
[MakeTempOptions? options]) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously creates a new temporary directory in the default directory for temporary files, unlessdir
is specified. Other optional options include prefixing and suffixing the directory name withprefix
andsuffix
respectively. -
makeTempFile(
[MakeTempOptions? options]) → Future< String> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Creates a new temporary file in the default directory for temporary files, unlessdir
is specified. -
makeTempFileSync(
[MakeTempOptions? options]) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously creates a new temporary file in the default directory for temporary files, unlessdir
is specified. -
memoryUsage(
) → MemoryUsage -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes. -
metrics(
) → Metrics -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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 sandbox and the rest of Deno. -
mkdir(
Object path, [MkdirOptions? options]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Creates a new directory with the specified path. -
mkdirSync(
Object path, [MkdirOptions? options]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously creates a new directory with the specified path. -
networkInterfaces(
) → List< NetworkInterfaceInfo> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns an array of the network interface information. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
Object path, [OpenOptions? options]) → Future< FsFile> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Open a file and resolve to an instance of {@linkcode Deno.FsFile}. The file does not need to previously exist if using thecreate
orcreateNew
open options. It is the caller's responsibility to close the file when finished with it. -
openSync(
Object path, [OpenOptions? options]) → FsFile -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously open a file and return an instance of {@linkcode Deno.FsFile}. The file does not need to previously exist if using thecreate
orcreateNew
open options. It is the caller's responsibility to close the file when finished with it. -
osRelease(
) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns the release version of the Operating System. -
osUptime(
) → num -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns the Operating System uptime in number of seconds. -
read(
num rid, Uint8List buffer) → Future< num?> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Read from a resource ID (rid
) into an array buffer (buffer
). -
readAll(
Reader r) → Future< Uint8List> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Read Readerr
until EOF (null
) and resolve to the content as Uint8Array`. -
readAllSync(
ReaderSync r) → Uint8List -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously reads Readerr
until EOF (null
) and returns the content asUint8Array
. -
readDir(
Object path) → AsyncIterable< DirEntry> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Reads the directory given bypath
and returns an async iterable of {@linkcode Deno.DirEntry}. -
readDirSync(
Object path) → Iterable< DirEntry> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously reads the directory given bypath
and returns an iterable ofDeno.DirEntry
. -
readFile(
Object path, [ReadFileOptions? options]) → Future< Uint8List> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Reads and resolves to the entire contents of a file as an array of bytes.TextDecoder
can be used to transform the bytes to string if required. Reading a directory returns an empty data array. -
readFileSync(
Object path) → Uint8List -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously reads and returns the entire contents of a file as an array of bytes.TextDecoder
can be used to transform the bytes to string if required. Reading a directory returns an empty data array. -
readLink(
Object path) → Future< String> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Resolves to the full path destination of the named symbolic link. -
readLinkSync(
Object path) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously returns the full path destination of the named symbolic link. -
readSync(
num rid, Uint8List buffer) → num? -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously read from a resource ID (rid
) into an array buffer (buffer
). -
readTextFile(
Object path, [ReadFileOptions? options]) → Future< String> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Asynchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. -
readTextFileSync(
Object path) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously reads and returns the entire contents of a file as an UTF-8 decoded string. Reading a directory throws an error. -
realPath(
Object path) → Future< String> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Resolves to the absolute normalized path, with symbolic links resolved. -
realPathSync(
Object path) → String -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously returns absolute normalized path, with symbolic links resolved. -
refTimer(
num id) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Make the timer of the givenid
block the event loop from finishing. -
remove(
Object path, [RemoveOptions? options]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Removes the named file or directory. -
removeSignalListener(
Signal signal, void handler()) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Removes the given signal listener that has been registered with {@linkcode Deno.addSignalListener}. -
removeSync(
Object path, [RemoveOptions? options]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously removes the named file or directory. -
rename(
Object oldpath, Object newpath) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Renames (moves)oldpath
tonewpath
. Paths may be files or directories. Ifnewpath
already exists and is not a directory,rename()
replaces it. OS-specific restrictions may apply whenoldpath
andnewpath
are in different directories. -
renameSync(
Object oldpath, Object newpath) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously renames (moves)oldpath
tonewpath
. Paths may be files or directories. Ifnewpath
already exists and is not a directory,renameSync()
replaces it. OS-specific restrictions may apply whenoldpath
andnewpath
are in different directories. -
resources(
) → Object -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns a map of open resource IDs (rid) along with their string representations. This is an internal API and as such resource representation hasunknown
type; that means it can change any time and should not be depended upon. -
run<
T extends RunOptions> (T opt) → Process< T> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
-
seek(
num rid, Object offset, SeekMode whence) → Future< num> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Seek a resource ID (rid
) to the givenoffset
under mode given bywhence
. The call resolves to the new position within the resource (bytes from the start). -
seekSync(
num rid, Object offset, SeekMode whence) → num -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously seek a resource ID (rid
) to the givenoffset
under mode given bywhence
. The new position within the resource (bytes from the start) is returned. -
serveHttp(
Conn conn) → HttpConn -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Provides an interface to handle HTTP request and responses over TCP or TLS connections. The method returns an {@linkcode HttpConn} which yields up {@linkcode RequestEvent} events, which utilize the web platform standard {@linkcode Request} and {@linkcode Response} objects to handle the request. -
shutdown(
num rid) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Shutdown socket send operations. -
startTls(
Conn conn, [StartTlsOptions? options]) → Future< TlsConn> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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. -
stat(
Object path) → Future< FileInfo> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Resolves to a {@linkcode Deno.FileInfo} for the specifiedpath
. Will always follow symlinks. -
statSync(
Object path) → FileInfo -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously returns a {@linkcode Deno.FileInfo} for the specifiedpath
. Will always follow symlinks. -
symlink(
Object oldpath, Object newpath, [SymlinkOptions? options]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Createsnewpath
as a symbolic link tooldpath
. -
symlinkSync(
Object oldpath, Object newpath, [SymlinkOptions? options]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Createsnewpath
as a symbolic link tooldpath
. -
systemMemoryInfo(
) → SystemMemoryInfo -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
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. -
toString(
) → String -
A string representation of this object.
inherited
-
truncate(
String name, [num? len]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Truncates (or extends) the specified file, to reach the specifiedlen
. Iflen
is not specified then the entire file contents are truncated. -
truncateSync(
String name, [num? len]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously truncates (or extends) the specified file, to reach the specifiedlen
. Iflen
is not specified then the entire file contents are truncated. -
uid(
) → num? -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Returns the user id of the process on POSIX platforms. Returns null on Windows. -
unrefTimer(
num id) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Make the timer of the givenid
not block the event loop from finishing. -
upgradeWebSocket(
Request request, [UpgradeWebSocketOptions? options]) → WebSocketUpgrade -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Upgrade an incoming HTTP request to a WebSocket. -
utime(
Object path, Object atime, Object mtime) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Changes the access (atime
) and modification (mtime
) times of a file system object referenced bypath
. Given times are either in seconds (UNIX epoch time) or asDate
objects. -
utimeSync(
Object path, Object atime, Object mtime) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously changes the access (atime
) and modification (mtime
) times of a file system object referenced bypath
. Given times are either in seconds (UNIX epoch time) or asDate
objects. -
watchFs(
Object paths, [IInline9? options]) → FsWatcher -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Watch for file system events against one or morepaths
, which can be files or directories. These paths must exist already. One user action (e.g.touch test.file
) can generate multiple file system events. Likewise, one user action can result in multiple file paths in one event (e.g.mv old_name.txt new_name.txt
). -
write(
num rid, Uint8List data) → Future< num> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Write to the resource ID (rid
) the contents of the array buffer (data
). -
writeAll(
Writer w, Uint8List arr) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Write all the content of the array buffer (arr
) to the writer (w
). -
writeAllSync(
WriterSync w, Uint8List arr) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously write all the content of the array buffer (arr
) to the writer (w
). -
writeFile(
Object path, Object data, [WriteFileOptions? options]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Writedata
to the givenpath
, by default creating a new file if needed, else overwriting. -
writeFileSync(
Object path, Uint8List data, [WriteFileOptions? options]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously writedata
to the givenpath
, by default creating a new file if needed, else overwriting. -
writeSync(
num rid, Uint8List data) → num -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously write to the resource ID (rid
) the contents of the array buffer (data
). -
writeTextFile(
Object path, Object data, [WriteFileOptions? options]) → Future< void> -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Write stringdata
to the givenpath
, by default creating a new file if needed, else overwriting. -
writeTextFileSync(
Object path, String data, [WriteFileOptions? options]) → void -
Available on $ModuleDeno, provided by the $ModuleDeno$Typings extension
Synchronously write stringdata
to the givenpath
, by default creating a new file if needed, else overwriting.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited