1.0.1 • Published 5 years ago
idisk v1.0.1
idisk
Get information about disk usage in Node.JS.
Install
npm install idisk
Usage
const idisk = require('idisk')
//Using default path ('C:' for Windows and '/' for Unix like OS)
idisk().then(info => {
console.log(info.free)
console.log(info.used)
console.log(info.total)
})
//Using a specific path
idisk('C:').then(info => {
console.log(info.free)
console.log(info.used)
console.log(info.total)
})