Skip to content

idjem/disk-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disk-space

This module wraps the df -BK command which shows the amount of disk space available on the file system that a given file is stored on. It returns the used size and total size of the file system in kilobytes.

Usage example

const diskSpace = require('disk-space');
diskSpace('/' , function(error, data) {
  console.log(data);  // returns { usedSize: 20, totalSize: 30 } in Kilobytes
});

About

get disk space I have in Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published