
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.
disk-usage is a command line disk analyser for *nix and Windows operating systems. It is similar to WinDirStat for Windows but for the command line :)

$ npm install -g disk-usage
Synopsis
$ disk-usage [--sort size] [--group group] path
$ dusk-usage --help
Options
-g, --group string Which field the results grouped by
-s, --sort string Which field the results should be sorted by
-c, --count number Number of results to display
-p, --path string System path to start scanning
-r, --reverse Reverse the results
-h, --help Display this help page
Files in the current directory grouped by top level folder
$ disk-usage .
Files in your Documents folder and grouped by top level folder
$ disk-usage ~/Documents
Files in your Documents folder and group by the last modified date
$ disk-usage ~/Documents --group modified
Files in your Documents folder sorted by the number of files
$ disk-usage ~/Documents --sort files
Group results by modified date
$ disk-usage /lib --group modified
Group results by extension
```bash
$ disk-usage /lib --group extension


As well as using disk-usage as a console application you can also use the internal library in your node applications:
$ npm install --save disk-usage
const scanner = require('disk-usage')
const args = {
path: '.',
group: 'tld'
sort: 'size',
onError: (err) => {
// disk access / permission error
},
onProgress (currentPath, currentStats) => {
// called for each top level directory
}
}
scanner
.scan(args)
.then((stats) => {
// scan complete!
console.log(stats)
})
FAQs
Disk usage tool
We found that disk-usage 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.