sysctl

0.0.1 • Public • Published

sysctl

Get kernel state.

Node.js

npm install --save sysctl

cli

npm install -g sysctl

The command sysctl-json is now available.

Usage

const sysctl = require('sysctl')
 
sysctl('machdep.cpu.core_count')
  .then(r => console.log(r))
  .catch(e => console.error(e))
 
// {
//   machdep: {
//     cpu: {
//       core_count: "4"
//     }
//   }
// }

Readme

Keywords

none

Package Sidebar

Install

npm i sysctl

Weekly Downloads

5

Version

0.0.1

License

MIT

Last publish

Collaborators

  • rogerbf