-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
space-hogs: cli for discovering surprisingly large directories #59
Comments
If anyone is interested in this, I just threw a very basic version together in a gist. It recursively goes through the directories and lists the folders with their sizes. Folders that get drilled in deeper or are an endpoint will show in green. (As example of some cmds) Example:
|
👍 Looks useful. Someone make this! :) https://github.com/sindresorhus/pretty-bytes could be useful for this. |
Something to think about - which directory do you report as being "big"? What constitutes as "big"? What's the margin? Perhaps a tree-like output with sorted directories (by size) and the human-readable sizes would be super effective. Perhaps if I know a directory is going to be big - and that's okay - but there's other unaccounted-for space that's being taken up in another directory, I don't want that first directory being the only one shown. Just a thought. |
Take a look at ncdu (available at least on linux). Looking like exactly what you want |
For anyone wondering how to quit, |
For sure! Would be pretty easy for something to throw something like ncdu together in Node. |
I like OmniDisksweeper: https://www.omnigroup.com/more (Mac only, alas) |
I wouldn't mind working on this unless someone else really wants to take it. |
👍 on Addy taking it! |
I've started working on it @addyosmani, want to work together? I'll push what I have to Github today. |
@sindresorhus @dthree @addyosmani and friends: here is my take on my own module request: Install
Usage
Example
Contribute |
If you tried space-hogs when I first posted it a 7 hours ago and it didn't work, try again. It now supports $ npm i -g space-hogs Thanks go to @backspaces for the quick bug report. 😄 |
I'm closing this as space-hogs is available to use. Any further discussion can be created as an issue with Thanks everyone for your ideas and suggestions, I hope the tool has been useful! |
Example Situation
You'd like to quickly discover that a dependency in your
node_modules
is 45 MB larger than the rest, which are all a few KB. Or to just figure out why your HD is more full than you were expecting.How the tool works
du -sh
or something like it to find the recursive size of each child directory.Example
Similar Tools
The text was updated successfully, but these errors were encountered: