node-diskfree
0.1.0 • Public • Published node-diskfree -
Get used, available and total disk space. This module using 'df -k' for OSX system and 'df' for *nix system.
Installation
npm install node-diskfree
Usage
var df = require('node-diskfree');
df.drives(
function (err, drives) {
if (err) {
return console.log(err);
}
df.drivesDetail(
drives,
function (err, data) {
if (err) {
return console.log(err);
}
console.log(data);
}
);
df.driveDetail(
drives[0],
function (err, data) {
if (err) {
return console.log(err);
}
console.log(data);
}
);
}
);
Tests
You can run these scripts :
- to get information about first drive
npm run-script drive
- to get information about all drives
npm run-script drives
License
See LICENSE.md file.
Change Log
See CHANGE_LOG.md file.
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.0
8
Version History
Package Sidebar
Install
Weekly Downloads