ustat

0.0.2 • Public • Published

ustat

ustat is an library for Node.JS which provide powerful function for view usage statistic of system resources.

Installation

You can install ustat with the npm:

npm install ustat

Functions

freemem(unit)

Returns free memory in the selected unit.

Arguments

  • unit - Unit for result value, one of (byte, kb, mb, gb, tb, pb, eb, zb, yb).

totalmem(unit)

Returns total memory in the selected unit.

Arguments

  • unit - Unit for result value, one of (byte, kb, mb, gb, tb, pb, eb, zb, yb).

usedmem(unit)

Returns used memory in the selected unit.

Arguments

  • unit - Unit for result value, one of (byte, kb, mb, gb, tb, pb, eb, zb, yb).

totalspace(unit, path)

Returns total disk space in the selected path and unit.

Arguments

  • unit - Unit for result value, one of (byte, kb, mb, gb, tb, pb, eb, zb, yb).
  • path - Path for space checking (like c: on Windows or /dev on Linux).

loadavg()

Returns average load.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i ustat

      Weekly Downloads

      101

      Version

      0.0.2

      License

      ISC

      Last publish

      Collaborators

      • exwei