Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

riptl/cpuid-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpuid-git

(THIS IS A FORK OF https://github.com/pdxmholmes/cpuid-node)

cpuid-git is a simple to user wrapper around LibCPUID for Node.js. It's so simple in fact, it's exactly one function, which returns a very easy to use object graph.

cpuid-git has been tested on Windows 64-bit, Macintosh OSX (Darwin) 64-bit and Linux 3.x 64-bit. All 32-bit platforms should work, but I have not tested them. If you do and it does not work, please file a bug report.

cpuid-git requires a natively compiled binary component, so it is not suitable for usage in the browser environment.

cpuid-git's most useful feature for many Node users will be it's detailed overview of the logical versus physical cores. As things like cluster come to the forefront, and "multi-threaded Node" becomes a reality, this information can be invaluable for worker pool performance.

Updated version by terorie supporting the newest processor instructions.

Now based on a git submodule of the original libcpuid.

usage

const cpuid = require('cpuid-git');
const cpuidInfo = cpuid();

cpuid is one function, which takes no arguments, and returns an object with properties representing the CPUID data.

About

libcpuid wrapper for Node

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors