check-disk-space
check-disk-space copied to clipboard
Light multi-platform disk space checker without third-party for Node.js
When checking the size of a ZFS pool, `checkDiskSpace('/my-zfs-pool')` is always indicating a 100% disk usage. Is this a known limitation?
// 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...
FYI, ramfs (under linux) does not work when using this module. ramfs is interesting because it does not use swap (which tmpfs does). This is a limitation of `df`. You...
When calling `getFirstExistingParentPath` on the parent folder of a non-existent root drive on Windows, the while loop proceeds indefinitely, crashing the calling program This is fixed by early return if...
I moved `types` condition to the front (fixing a small issue introduced in https://github.com/highlightjs/highlight.js/pull/3736 ). `package.json#exports` are **order-sensitive** - they are always matched from the top to the bottom. When...
mac os: 14.3.1 (23D60) node: 16.15.1 electron: 22.3.27 check-disk-space: 3.4.0 ``` import checkDiskSpace from 'check-disk-space' checkDiskSpace(args).then(diskSpace => { console.log(diskSpace) }) ``` Prompt TypeError: checkDiskSpace is not a function. I called...
windows: 11 node: 20.16.0 modules: es modules typescript: 5.5.4 check-disk-space: 3.4.0 `This expression is not callable. Type 'typeof import("c:/node_modules/check-disk-space/dist/check-disk-space")' has no call signatures.` try to call it in one of...