Skip to content

joaosp/diskinfo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diskinfo

nodejs module to get disk information, will call system command to get drive info. Parse result and load info in array.

usage

var d = require('diskinfo');

d.getDrives(function(err, aDrives) {

      for (var i = 0; i < aDrives.length; i++) {
            console.log('Drive ' + aDrives[i].filesystem);
            console.log('blocks ' + aDrives[i].blocks);
            console.log('used ' + aDrives[i].used);
            console.log('available ' + aDrives[i].available);
            console.log('capacity ' + aDrives[i].capacity);
            console.log('mounted ' + aDrives[i].mounted);
            console.log('-----------------------------------------');
      }

});

About

nodejs module to get disk information

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%