Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

physical-cpu-count

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

physical-cpu-count

Provides the number of physical cores

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
141K
decreased by-51.86%
Maintainers
1
Weekly downloads
 
Created

What is physical-cpu-count?

The physical-cpu-count npm package is a simple utility that allows you to determine the number of physical CPU cores on your machine. This can be useful for optimizing performance, managing resources, or simply gathering system information.

What are physical-cpu-count's main functionalities?

Get Physical CPU Count

This feature allows you to retrieve the number of physical CPU cores on your machine. The code sample demonstrates how to use the package to log the number of physical CPU cores to the console.

const physicalCpuCount = require('physical-cpu-count');
console.log(`Number of physical CPU cores: ${physicalCpuCount}`);

Other packages similar to physical-cpu-count

Keywords

FAQs

Package last updated on 07 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc