drive-free-space

Return if it failed and if not, the free space as mb (meta package for win-drive-internal-sharkmon)

Usage no npm install needed!

<script type="module">
  import driveFreeSpace from 'https://cdn.skypack.dev/drive-free-space';
</script>

README

Get Drive

Works on Linux and Windows, else it returns at fail true

returns: {fail:(true if an error occured), mb: (if fail=false, here is the free disk space in mb)}

it get only the diskspace of the current disk, where your program runs!

© Sharkbyteprojects