1.0.0 • Published 6 years ago

utilized v1.0.0

Weekly downloads
8
License
-
Repository
github
Last release
6 years ago

Utilized

System resource usage reporter

Table of Contents

Install

npm i utilized

# Or with Yarn
yarn add utilized

Usage

const utilized = require('./index').default;

(async () => {
  const sysUtil = await utilized();
  console.log(JSON.stringify(sysUtil.get(), null, 2));
  // {
  //   "memory": {
  //     "free": 25442,
  //     "total": 31807
  //   },
  //   "cpu": {
  //     "usage": 4.9,
  //     "count": 12
  //   }
  // }
})();

Laziness has prevented usage instructions from being documented.

Contributing

See the contribute file!

PRs accepted.

License

MIT © Michael Leaney