Quick git statistics. Lines of code, commits, contributors. ASCII heatmap included.
npm install bruh-gitstatsQuick git statistics. Lines of code, commits, contributors. ASCII heatmap included.
``bash`
npm install -g gitstats
`bashShow all stats for current repo
gitstats
Options
| Option | Description |
|--------|-------------|
|
-l, --loc | Lines of code by language |
| -c, --commits | Commits over time |
| --contributors | Contributors leaderboard |
| -H, --heatmap | Activity heatmap |
| -a, --author | Stats for specific author |
| --since | Filter by start date |
| --until | Filter by end date |
| --last-month | Last month only |
| --last-year | Last year only |
| --json | Output as JSON |
| --csv | Output as CSV |
| --summary | Quick summary |Output
`
$ gitstats gitstats — bruh.tools
─────────────────────
SUMMARY
───────
Repository: my-project
Commits: 1,234
Contributors: 5
First commit: 2023-01-15
Last commit: 2024-01-10 (2 days ago)
LINES OF CODE
─────────────
js: 12,345 ████████████████████░░░░ 68%
css: 3,456 █████░░░░░░░░░░░░░░░░░░░ 19%
html: 1,234 ██░░░░░░░░░░░░░░░░░░░░░░ 7%
json: 567 █░░░░░░░░░░░░░░░░░░░░░░░ 3%
─────────────────────────────────────────────
Total: 18,058 lines
TOP CONTRIBUTORS
────────────────
1. John Doe 789 commits ████████████████
2. Jane Smith 345 commits ███████
3. Bob Wilson 88 commits ██
$ gitstats --heatmap
COMMIT HEATMAP (last 52 weeks)
──────────────────────────────
Sun ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Mon ░░█░░░░░██░░░░█░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░░
Tue ░░░░░░░░░█░░░░█░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░
Wed ░█░░░░░░░░░░░░█░░░░░█░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░
Thu ░░░░░░░░█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Fri ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░
Sat ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Less ░ ▒ ▓ █ More
``MIT
---
bruh.tools - no cap fr fr