Registers the given function as a listener of the given signal event.
Change the current working directory to the specified path.
Return a string representing the current working directory.
Returns the path to the current deno executable.
Exit the Deno process with optional exit code.
Returns the group id of the process on POSIX platforms. Returns null on windows.
Get the hostname
of the machine the Deno process is running on.
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.
Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes.
Returns the release version of the Operating System.
Returns the Operating System uptime in number of seconds.
Make the timer of the given id
block the event loop from finishing.
Removes the given signal listener that has been registered with
Deno.addSignalListener
.
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.
Returns the user id of the process on POSIX platforms. Returns null on Windows.
Make the timer of the given id
not block the event loop from finishing.
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.
Returns a map of open resource IDs (rid) along with their string
representations. This is an internal API and as such resource
representation has unknown
type; that means it can change any time and
should not be depended upon.
An interface containing methods to interact with the process environment variables.
Information returned from a call to Deno.systemMemoryInfo
.
A map of open resources that Deno is tracking. The key is the resource ID (rid) and the value is its representation.
Operating signals which can be listened for or sent to sub-processes. What signals and what their standard behaviors are OS dependent.
Returns the script arguments to the program.
Information related to the build of the current Deno runtime.
An interface containing methods to interact with the process environment variables.
The exit code for the Deno process.
The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.
Reflects the NO_COLOR
environment variable at program start.
The current process ID of this instance of the Deno CLI.
The process ID of parent process of this instance of the Deno CLI.
Version information related to the current Deno CLI runtime environment.