code-report
v1.5.0
Published
Interactive developer statistics report generator - analyze git commits and code changes
Maintainers
Readme
code-report
Interactive developer statistics report generator - analyze git commits and code changes with Excel export.
Features
- 📊 Interactive CLI - Easy-to-use prompts for all parameters
- 📈 Git Statistics - Analyzes commits, lines added/deleted per author
- 📅 Date Range - Flexible date selection with sensible defaults
- 📁 Branch Support - Works with any git branch
- 🎯 Author Filtering - View stats for specific authors or all committers
- 📋 Excel Export - Professional Excel reports with formatting
- ⚡ Fast - Leverages native git commands for performance
Installation
npm install -g code-reportUsage
Simply run the command:
code-reportInteractive Prompts
Select branch (default: current branch)
- Press Enter to use current branch
- Or enter a different branch name
Start date (default: 1st of current month)
- Format:
YYYY-MM-DD - Press Enter to use default
- Format:
End date (default: last day of current month)
- Format:
YYYY-MM-DD - Press Enter to use default
- Format:
Authors (default: all committers)
- Space-separated email addresses
- Example:
[email protected] [email protected] - Press Enter to include all authors
Save as Excel? (default: yes)
- Type
yesoryto save - File saves to
~/Downloads/
- Type
Example Output
╔════════════════════════════════════════════════╗
║ Dev Statistics Report Generator ║
╚════════════════════════════════════════════════╝
Select branch (default: dev):
Start date YYYY-MM-DD (default: 2026-02-01):
End date YYYY-MM-DD (default: 2026-02-28):
Authors - space-separated emails (leave empty for all):
Git Statistics Report
Branch: dev | Period: 2026-02-01 to 2026-02-28
─────────────────────────────────────────────────────────────
Author | Added | Deleted | Commits
─────────────────────────────────────────────────────────────
[email protected] | 2450 | 1230 | 15
[email protected] | 1890 | 950 | 12
─────────────────────────────────────────────────────────────
Save as Excel file? (yes/no) (default: yes):
✓ Report saved to: /Users/username/Downloads/code-report-dev-2026-02-01_to_2026-02-28.xlsxExcel Report Features
- 📑 Title and period information
- 🎨 Color-coded header (blue background, white text)
- 📌 Frozen header row for easy scrolling
- 📏 Auto-sized columns
- 🔲 Professional borders and alignment
- 📊 Right-aligned numbers for better readability
Requirements
- Node.js 18+
- Git installed and available in PATH
Which files are counted?
code-report counts only files that are committed to the repository and not covered by the project's current .gitignore (plus .git/info/exclude and your global git ignore).
- Untracked files are never counted —
git logonly sees committed history. - Files added to
.gitignoreafter they were committed are still filtered out, including their past commits. - There is no hardcoded exclusion list. The project's
.gitignoreis the single source of truth.
Options
Global Installation
npm install -g code-report
code-reportLocal Development
npm install
npm run build
npm startDevelopment Mode (with TypeScript)
npm install
npm run devOutput
- Console output: Formatted table with all statistics
- Excel file: Saved to
~/Downloads/code-report-{branch}-{startDate}_to_{endDate}.xlsx
License
MIT
Author
Salih Kesepara [email protected]
Support
For issues or feature requests, please open an issue on the repository.
