Commands
A size and language overview of the project.
broom statsbroom stats --verbose # all extensions/directories, 25 largest filesbroom stats --top 50broom stats --json broom stats 26 files in 10 directories, 9.1 KB Languages (share of bytes in recognized source files) TSX 51.4% ▪▪▪▪▪▪▪▪▪▪ 5 files JSON 32.8% ▪▪▪▪▪▪▪ 4 files CSS 7.8% ▪▪ 4 files TypeScript 5.7% ▪ 2 files JavaScript 2.4% ▪ 1 file Extensions .webp 1 4 KB .png 1 2 KB .tsx 5 1.2 KB +5 more (--verbose)Each file is mapped to a language by extension (for example .ts/.mts/.cts → TypeScript, .tsx → TSX, .js/.mjs/.cjs → JavaScript, .css, .scss, .html, .json, .md, .yaml, …). A language's percentage is the sum of its files' sizes in bytes divided by the total bytes of all files in a recognized language. Files in other formats (images, fonts, binaries) count toward totals but not toward percentages. Bytes are the files' real sizes from lstat.
Generated directories and .gitignored files are excluded, symlinks are never followed or counted, and hard-linked files are counted once.
| Flag | Description |
|---|---|
--top <n> | Number of largest files to list (default 10, 25 with --verbose). |
Found a problem in these docs? Open an issue on GitHub.