0.0.2 • Published 10 years ago

ustat v0.0.2

Weekly downloads
25,326
License
ISC
Repository
github
Last release
10 years ago

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.

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago