Socket
Socket
Sign inDemoInstall

ustat

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

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
107
decreased by-60.52%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 21 Jun 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc