A enum which defines the seek mode for IO related APIs that supportseeking.
Gets the size of the console as columns/rows.
Converts the input into a string that has the same format as printed byconsole.log()
.
Close the given resource ID (rid
) which has been previously opened, suchas via opening or creating a file. Closing a file when you are finishedwith it is important to avoid leaking resources.
Copies from src
to dst
until either EOF (null
) is read from src
oran error occurs. It resolves to the number of bytes copied or rejects withthe 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 asUint8Array`.
Synchronously reads Reader r
until EOF (null
) and returns the contentas 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 modegiven by whence
. The new position within the resource (bytes from thestart) 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 thewriter (w
).
Synchronously write to the resource ID (rid
) the contents of the arraybuffer (data
).
Option which can be specified when performing Deno.inspect
.
An abstract interface which when implemented provides an interface to seekwithin an open file/resource asynchronously.
An abstract interface which when implemented provides an interface to seekwithin an open file/resource synchronously.
An abstract interface which when implemented provides an interface to closefiles/resources that were previously opened.
An abstract interface which when implemented provides an interface to readbytes into an array buffer asynchronously.
An abstract interface which when implemented provides an interface to readbytes into an array buffer synchronously.
An abstract interface which when implemented provides an interface to writebytes from an array buffer to a file/resource asynchronously.
An abstract interface which when implemented provides an interface to writebytes 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 aWritableStream
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 aReadableStream
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 aWritableStream
interface.
A symbol which can be used as a key for a custom method which will becalled when Deno.inspect()
is called, or when the object is logged tothe console.