Back to Explore

Alex-D/check-disk-space

GitHub
1 watchersOpen source

Last release:

check-disk-space is a light, multi-platform disk space checker for Node.js that works on Linux, macOS, and Windows. It helps you measure free and total disk space for a given path or mounting point, with TypeScript support and no dependencies. Install via npm and use it to get diskPath, free, and size values (in bytes).

Project status

  • The GitHub update source appears quiet or dormant, with the last upstream push on 2023-12-15 (over 8 months before today, 2026-08-12), and the most recent listed update being v3.4.0 from 2023-05-21.
  • Update cadence looks sporadic rather than active, with releases in 2022 (v3.3.0, v3.3.1) and then v3.4.0 in 2023, and no evidence of continued updates since late 2023.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v3.4.0

    Version 3.4.0 makes the library fully asynchronous by removing synchronous child_process usage and switching internal checks to async/await. The release also adds stricter Node.js engine requirements (Node 16+), improves parsing by removing empty lines from command output, and adjusts packaging for explicit type exports and bundler compatibility.

    BreakingSecurity
  • v3.3.1

    Release 3.3.1 claims to add a fallback to `wmic` when PowerShell is not available, to avoid crashes. The code changes implement PowerShell availability detection more defensively, but they also introduce an internal API change and a new dependency injection point.

  • v3.3.0

    Release 3.3.0 focuses on restoring disk space checks on older Windows versions by falling back to wmic when PowerShell 3 is unavailable. The release notes describe a single fix related to determining when PowerShell 3 exists so that Get-CimInstance can or cannot be used.

  • v3.2.0

    Release 3.2.0 switches the Windows disk space collection implementation from using `wmic` to using PowerShell. The code diff indicates a single operational change in the Windows command used by `checkDiskSpace`, plus a small repo demo addition and version/package metadata updates.

  • v3.1.0

    Release 3.1.0 is intended to fix how the package can be imported or required by consumers. The release notes state that it now works correctly with both `import` and `require`.

  • v3.0.1

    This release rewrites the package in TypeScript and introduces generated declaration files. It also updates the implementation to address command execution safety and Windows drive letter case sensitivity.

    BreakingSecurityFeatures
  • 2.1.0

    Release 2.1.0 introduces TypeScript support by adding a bundled declaration file for the check-disk-space package. The update also adds a small TypeScript type test file and registers the typings entry in package.json.

    Features
  • 2.0.0

    Release 2.0.0 raises the minimum supported Node.js version. It now requires at least Node.js 8+, primarily due to development dependency updates for security reasons.

    BreakingSecurity