UNPKG
num-cpus
Version:
latest (1.1.0)
1.1.0
1.0.0
0.0.0
Returns the number of CPUs.
github.com/kgryte/node-num-cpus
kgryte/node-num-cpus
num-cpus
/
lib
/
index.js
6 lines
(3 loc)
•
78 B
JavaScript
View Raw
1
2
3
4
5
6
'use strict'
;
// EXPORTS //
module
.
exports
=
require
(
'os'
).
cpus
().
length
;