@server-state/disk-usage-module

A module to view the current disk usage on your system

Usage no npm install needed!

<script type="module">
  import serverStateDiskUsageModule from 'https://cdn.skypack.dev/@server-state/disk-usage-module';
</script>

README

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.