Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.systemMemoryInfo

Unstable new API. yet to be vetted.

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-env permission.

function systemMemoryInfo(): SystemMemoryInfo;