Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.systemMemoryInfo

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.systemMemoryInfo
allow-sys
import { Deno } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.deno.ns.d.ts";
const { systemMemoryInfo } = Deno;

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.

This is similar to the free command in Linux

console.log(Deno.systemMemoryInfo());

Requires allow-sys permission.