Package Exports
- check-disk-space
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (check-disk-space) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Check disk space
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
// }
})