Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

A module to view the current disk usage on your system

License

Notifications You must be signed in to change notification settings

server-state/disk-usage-module

Repository files navigation

disk usage module

Build Status GitHub npm version Coverage Status module type: official

A module to view the current disk space of devices in your system.

You can specify the moint points in the given options, for example:

server.addModule('diskUsage', require('@server-state/disk-usage-module'), [
    '/'
]);

with the following output:

{
 "title": "virtualRoot",
 "children": [
  {
   "title": "/",
   "children": [
    {
     "title": "free",
     "children": [
      {
       "title": "available",
       "size": 26725240832
      },
      {
       "title": "reserved",
       "size": 3452747776
      }
     ],
     "size": 30177988608
    },
    {
     "title": "used",
     "size": 36926201856
    }
   ],
   "size": 67104190464
  }
 ]
}

The output is specified in data formats.

The output generates a straight base to provide other applications useful information like server-states example client-base.

This official module belongs to the organization server-state.