Skip to content

Get system free memory with TypeScript

Advertisements
  
import * as os from "os"

function getCurrentFreeMemory(): number {
    return os.freemem()
}
See also  TypeScript code snippet - How to make a dictionary of indices and lists python?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.