os.info()
Reports CPU and memory availability.
Signature
os.info()
Parameters
No parameters.
Returns
Dictionary of unsigned cpus, total_memory and available_memory, with memory in bytes.
Behavior
Reads system-wide information through libuv.
Errors
Incorrect arity or denied process control.
Example
use os
assert(os.info().cpus > 0)