availcpucount-js

0.0.2 • Public • Published

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'

Package Sidebar

Install

npm i availcpucount-js

Weekly Downloads

1

Version

0.0.2

License

MIT License

Unpacked Size

5.96 kB

Total Files

4

Last publish

Collaborators

  • cynron