Displaying directory sizes (e.g. .git, node_modules, etc)
✓ Published0🌍 Public
AAnsonT
Last edited Feb 11, 2019
Created on Feb 11, 2019
This example shows the sizes of directories matching a user-specified name pattern, such as `.git` or `node_modules`, across a directory tree. It visualizes the disk usage of each matching folder, highlighting how much space different project dependencies or version-control data occupy. The implementation uses a simple shell function that combines `find` with `-prune` to locate matching directories and `du -sh` to report their human-readable sizes. The output is a plain list of sizes and paths, as seen in the included example output, and no external visualization library is required—the result is meant for terminal display or further processing.
AI-generated description