1.0.0 • Published 8 years ago

proc-cpuinfo v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

proc-cpuinfo

Get /proc/cpuinfo as an object

Only relevant to Linux systems (probably, def not Win/OS X)

Install

npm i --save proc-cpuinfo

Usage

var cpuinfo = require('proc-cpuinfo')()

If the system doesn't have /proc/cpuinfo an empty object will be returned.

How it works

  • Loads /proc/cpuinfo synchronously at require time
    • Synchronous ops at initialisation time are best practice
  • Exports function, when called, converts cpuinfo format into an object