0.0.2 • Published 5 years ago
availcpucount-js v0.0.2
Purpose
Retrieve available cpu count for nodejs running in docker.
On other platform/os, it is equivalent to os.cpus().length()
.
Example
const availCpuCount = require('availcpucount-js')();
console.log('avail cpu count: ', availCpuCount);
Debug
set env AVAIL_CPU_COUNT_DEBUG to 'true'
0.0.2
5 years ago