Skip to content

Get CPU information with TypeScript

import * as os from "os"

function getCurrentCPUInfo(): os.CpuInfo[] {
    return os.cpus()
See also  TypeScript code snippet - How to remove list dots in li bootstrap?

Leave a Reply

Your email address will not be published. Required fields are marked *

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