JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1905026
  • Score
    100M100P100Q210798F
  • License MIT

Light multiplartform disk space checker without third party for Node.js

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

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