@server-state/disk-usage-module

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i @server-state/disk-usage-module

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

17.2 kB

Total Files

6

Last publish

Collaborators

  • fussel178
  • pklaschka
  • server-state-ci