Get CPU information with TypeScript
Advertisements
import * as os from "os" function getCurrentCPUInfo(): os.CpuInfo[] { return os.cpus() }
import * as os from "os" function getCurrentCPUInfo(): os.CpuInfo[] { return os.cpus() }