idisk

1.0.1 • Public • Published

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)
})

Package Sidebar

Install

npm i idisk

Weekly Downloads

9

Version

1.0.1

License

BSD-3-Clause

Unpacked Size

3.69 kB

Total Files

4

Last publish

Collaborators

  • samuelnovaes