Skip to content

Get CPU information with TypeScript

Advertisements
import * as os from "os"

function getCurrentCPUInfo(): os.CpuInfo[] {
    return os.cpus()
}
See also  TypeScript code snippet - using log How can we find number of digits for a number in java?

Leave a Reply

Your email address will not be published.

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