
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
fd-diskspace
Advanced tools
Supports Windows and Linux system. Check with the utility:
wmic logicaldisk get size,freespace,captiondfnpm install fd-diskspace --save
var ds = require('fd-diskspace');
// Async
ds.diskSpace(function(err, res){
if(err) throw err;
console.log(res);
});
// Sync
var statsSync = ds.diskSpaceSync();
console.log(statsSync);
// Linux output:
/*
{
total: {
free: 24074004,
size: 31069279,
used: 6995275,
percent: 0.22515086365538126
},
disks: {
'/': {
free: 23647712,
size: 30572556,
used: 6924844,
percent: 0.22650523561065683
},
'/dev/shm': {
free: 251044,
size: 251044,
used: 0,
percent: 0
},
'/boot': {
free: 175248,
size: 245679,
used: 70431,
percent: 0.28667895912959596
}
}
}
*/
Function callback - callback fucntion
Error err - callback errorObject res - callback result about disk spaceObject res - result about disk spaceObject res
Object total - sum of all disk space
Integer free - free disk spaceInteger size - total size of diskInteger used - used disk spaceInteger percent - percent of used disk spaceObject disks - named disks. Contain full analogue disks.total ObjectCurrent test runs for 12-16 ms
npm test
The source code in the folder development. They should be compiled in the bin folder
Stable ]Add - first realiseFAQs
Checks disk space
We found that fd-diskspace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.