Socket
Socket
Sign inDemoInstall

ustat

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ustat

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


Version published
Weekly downloads
40
decreased by-68%
Maintainers
1
Install size
4.20 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 21 Jun 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc