3.4.0 • Published 2 years ago

check-disk-space v3.4.0

Weekly downloads
88,029
License
MIT
Repository
github
Last release
2 years ago

Check disk space

Continue Integration check-disk-space on npm License MIT

Introduction

Light multi-platform disk space checker without third party for Node.js.

  • Works on Linux, macOS and Windows
  • Take care of mounting points on unix-like systems
  • No dependencies
  • TypeScript support

Install

npm install check-disk-space

Usage

// ES
import checkDiskSpace from 'check-disk-space'

// CommonJS
const checkDiskSpace = require('check-disk-space').default

// On Windows
checkDiskSpace('C:/blabla/bla').then((diskSpace) => {
    console.log(diskSpace)
    // {
    //     diskPath: 'C:',
    //     free: 12345678,
    //     size: 98756432
    // }
    // Note: `free` and `size` are in bytes
})

// On Linux or macOS
checkDiskSpace('/mnt/mygames').then((diskSpace) => {
    console.log(diskSpace)
    // {
    //     diskPath: '/',
    //     free: 12345678,
    //     size: 98756432
    // }
    // Note: `free` and `size` are in bytes
})
@neuvernetzung/cms-apihealthcheck-node@schiphol-nl/station1@aliconnect/aim-v1aws-disk-monitorgs-storage@everything-registry/sub-chunk-1316looper-streaming-alphasysutilapiwiz-editorwiz-editor-prodwranglebotreaction-gatewaysdk-security-bankingrpi-oledserver-health-checkervideo-upcamera.ui.localmegacubolooper-streaminglive-editormoe-torrentinfraspec.uikeepix-server-buildlwstatusmediamonkeyservermachine-stateprostgles-servernode-red-contrib-monitorcpu-nocolapatchkit-launcher2-basenulled-authstepctlrtsp-downloaderserverautopsytyzxbstorrent-stream-server@asiz33/smartblok-vendure-plugin@automattic/vip@adonisjs/health@aliconnect/sdk@bgord/node@brunnerlivio/terminus@bryopsida/object-store@chain-reactor/gate@0th/terminus@acter/gateway@acst11/etcher-sdk@abyss-project/monitor@acceleratxr/electron-shared@credenceanalytics/iwfcli@credenceanalytics/credcli@credenceanalytics/fundscliusb-backupzmd-devzmd-prodzmd-test@felipebutcher/node-os-info@hop-protocol/hop-node@germainapm/nodejs-monitoring@instadapp/iga-node@instadapp/interop-node@lianxin/node-core@litemotion/libware@newrelic/security-agent@nephele/adapter-file-system@nephele/adapter-nymph@nestjs/terminus@neighbourhoodie/opservatory-agent@electron-lab/utils@kb2ma/etcher-sdk@scrypted/homekit@soyjak/utils@seashell/agent@domedb/core@drumee/schemas-setup@drumee/server-team@drumee/setup-schemas@douglassllc/camera.ui@rsksmart/rif-marketplace-upload-serviceetcher-sdk@testausserveri/abitikku-sdk@upsoft/patchkit-launcher2-runtime-baseabitikku-sdk-npmsucksabyss_monitor_coreagentgflashgetbasic-cli-moduleasuna-node-servercanvas-spidercamera.uicamera_plus_bkcanvas-botcouchdb-stat-collectorcheck-os-speccrypto-aggregatorcli-guangfu-gis-data-managementcli-applicationdesktop-node
3.4.0

2 years ago

3.3.1

2 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago