UNPKG

hardware-concurrency

Version:
6 lines (4 loc) 103 B
import { cpus } from 'os' export function getHardwareConcurrency(): number { return cpus().length }