Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/lib.deno.d.ts>Deno.systemMemoryInfo

A JavaScript extension package for building strong and modern applications.
Latest
function Deno.systemMemoryInfo
allow-sys
import { Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.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.