idisk
v1.0.1
Published
Get information about disk usage in Node.JS
Downloads
133
Maintainers
Readme
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)
})