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 last upstream push was on 2023-12-15, and the most recent published update in the provided list is v3.4.0 from 2023-05-21, so the source appears quiet and likely in maintenance mode rather than actively advancing as of 2026-08-13.
- Update cadence is low, with gaps of about 1 to 2 years between updates historically (for example, 2022-03-07 to 2023-05-21), and no recent updates close to today.
AI summary generated
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.
BreakingSecurityv3.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.
BreakingSecurityFeatures2.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.
Features2.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