A variable-sized buffer of bytes with read()
and write()
methods.
A enum which defines the seek mode for IO related APIs that support seeking.
Gets the size of the console as columns/rows.
Converts the input into a string that has the same format as printed by
console.log()
.
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.
Copies from src
to dst
until either EOF (null
) is read from src
or
an error occurs. It resolves to the number of bytes copied or rejects with
the first error encountered while copying.
Check if a given resource id (rid
) is a TTY (a terminal).
Turns a Reader, r
, into an async iterator.
Turns a ReaderSync, r
, into an iterator.
Read from a resource ID (rid
) into an array buffer (buffer
).
Read Reader r
until EOF (null
) and resolve to the content as
Uint8Array`.
Synchronously reads Reader r
until EOF (null
) and returns the content
as Uint8Array
.
Synchronously read from a resource ID (rid
) into an array buffer
(buffer
).
Seek a resource ID (rid
) to the given offset
under mode given by whence
.
The call resolves to the new position within the resource (bytes from the start).
Synchronously seek a resource ID (rid
) to the given offset
under mode
given by whence
. The new position within the resource (bytes from the
start) is returned.
Write to the resource ID (rid
) the contents of the array buffer (data
).
Write all the content of the array buffer (arr
) to the writer (w
).
Synchronously write all the content of the array buffer (arr
) to the
writer (w
).
Synchronously write to the resource ID (rid
) the contents of the array
buffer (data
).
Option which can be specified when performing Deno.inspect
.
An abstract interface which when implemented provides an interface to seek within an open file/resource asynchronously.
An abstract interface which when implemented provides an interface to seek within an open file/resource synchronously.
An abstract interface which when implemented provides an interface to close files/resources that were previously opened.
An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously.
An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously.
An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously.
An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource synchronously.
A reference to stderr
which can be used to write directly to stderr
.
It implements the Deno specific Writer
, WriterSync
,
and Closer
interfaces as well as provides a
WritableStream
interface.
A reference to stdin
which can be used to read directly from stdin
.
It implements the Deno specific Reader
, ReaderSync
,
and Closer
interfaces as well as provides a
ReadableStream
interface.
A reference to stdout
which can be used to write directly to stdout
.
It implements the Deno specific Writer
, WriterSync
,
and Closer
interfaces as well as provides a
WritableStream
interface.
A symbol which can be used as a key for a custom method which will be
called when Deno.inspect()
is called, or when the object is logged to
the console.