Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 218 Bytes

File metadata and controls

11 lines (7 loc) · 218 Bytes

cpu-count

The cpu-count example exposes a single function named get that returns the number of CPUs on the current platform.

Usage

const { getNumCpus } = require(".");

console.log(getNumCpus());