Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-mood) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
code-mood
๐ง code-mood is a developer mood tracking CLI tool that analyzes your Git commit history to estimate your emotional state over time using sentiment analysis, code churn, and commit timing patterns.
๐ Features
- ๐ Analyzes commit messages for sentiment
- ๐ Measures code churn (lines added/removed)
- โฐ Tracks timing patterns like late-night or weekend commits
- ๐ก Returns a mood estimate:
HAPPY,STRESSED,BURNED OUT, orNEUTRAL
๐ฆ Installation
npm install -g code-mood๐งช Usage
code-moodcode-mood --author="srikanth"Run this command inside any Git-enabled project folder.
๐ Sample Output
๐ง Analyzing your code mood...
โจ Developer Mood Estimate: STRESSED
๐ Details:
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโ
โ (index) โ Values โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโค
โ sentiment โ -1.8 โ
โ churn โ 243.6 โ
โ lateNightCommits โ 22 โ
โ weekendCommits โ 18 โ
โ sampleSize โ 50 โ
โโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโ๐ค How It Works
- Uses simple-git to pull commit data
- Applies sentiment analysis to commit messages
- Calculates churn score using added/removed lines
- Analyzes commit time patterns (late-night, weekend)
- Combines results using heuristics to estimate developer mood
๐ Dependencies
- simple-git
- sentiment
- chalk
๐ License
MIT License ยฉ 2025 Srikanth Enjamoori