utilized

System resource usage reporter

Usage no npm install needed!

<script type="module">
  import utilized from 'https://cdn.skypack.dev/utilized';
</script>

README

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