physical-cores
Get your physical cpu count in a blink, supports several main platforms include linux, windows, darwin
perflevels
Provides the number of physical CPU cores in each perflevel on macOS
js-quantities
JavaScript library for quantity calculation and unit conversion