Skip to content
This repository was 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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bd94497 · Oct 26, 2021
Jun 14, 2020
Sep 17, 2019
Jun 4, 2020
Sep 16, 2019
Jun 4, 2020
Sep 17, 2019
Sep 17, 2019
Sep 16, 2019
Sep 16, 2019
Sep 16, 2019
Sep 17, 2019
Oct 26, 2021
Oct 26, 2021
Oct 16, 2020

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.