Miss any of our Open RFC calls?Watch the recordings here! »

check-disk-space

2.1.0 • Public • Published

Check disk space

Travis License MIT XO code style

Install

npm install check-disk-space

Usage

const checkDiskSpace = require('check-disk-space')
 
// On Windows
checkDiskSpace('C:/blabla/bla').then((diskSpace) => {
    console.log(diskSpace)
    // {
    //     free: 12345678,
    //     size: 98756432
    // }
})
 
// On Linux or macOS
checkDiskSpace('/mnt/mygames').then((diskSpace) => {
    console.log(diskSpace)
    // {
    //     free: 12345678,
    //     size: 98756432
    // }
})

Install

npm i check-disk-space

DownloadsWeekly Downloads

57,848

Version

2.1.0

License

MIT

Unpacked Size

16 kB

Total Files

10

Last publish

Collaborators

  • avatar