Skip to main content
Runtime - Deno documentation

Functions

f
Deno.addSignalListener

Registers the given function as a listener of the given signal event.

f
Deno.chdir

Change the current working directory to the specified path.

f
Deno.cwd

Return a string representing the current working directory.

f
Deno.execPath

Returns the path to the current deno executable.

f
Deno.exit

Exit the Deno process with optional exit code.

f
Deno.gid

Returns the group id of the process on POSIX platforms. Returns null on windows.

f
Deno.hostname

Get the hostname of the machine the Deno process is running on.

f
Deno.loadavg

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.

f
Deno.memoryUsage

Returns an object describing the memory usage of the Deno process and the V8 subsystem measured in bytes.

f
Deno.osRelease

Returns the release version of the Operating System.

f
Deno.osUptime

Returns the Operating System uptime in number of seconds.

f
Deno.refTimer

Make the timer of the given id block the event loop from finishing.

f
Deno.removeSignalListener

Removes the given signal listener that has been registered with Deno.addSignalListener.

f
Deno.systemMemoryInfo

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.

f
Deno.uid

Returns the user id of the process on POSIX platforms. Returns null on Windows.

f
Deno.unrefTimer

Make the timer of the given id not block the event loop from finishing.

Interfaces

Type Aliases

T
Deno.Signal

Operating signals which can be listened for or sent to sub-processes. What signals and what their standard behaviors are OS dependent.

Variables

v
Deno.args

Returns the script arguments to the program.

v
Deno.build

Information related to the build of the current Deno runtime.

v
Deno.env

An interface containing methods to interact with the process environment variables.

v
Deno.exitCode

The exit code for the Deno process.

v
Deno.mainModule

The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.

v
Deno.noColor

Reflects the NO_COLOR environment variable at program start.

v
Deno.pid

The current process ID of this instance of the Deno CLI.

v
Deno.ppid

The process ID of parent process of this instance of the Deno CLI.

v
Deno.version

Version information related to the current Deno CLI runtime environment.

Back to top