Nutella with Pepperoni and Mushrooms

npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

check-disk-space

2.0.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

4,065

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability