sysctl
v0.0.1
Published
get kernel state
Downloads
16
Readme
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"
// }
// }
// }