JSPM

code-mood

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q38837F
  • License ISC

A package that analyzes your commit messages and code patterns to guess your mood.

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

    npm npm license

    ๐Ÿง  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, or NEUTRAL

    ๐Ÿ“ฆ Installation

    npm install -g code-mood

    ๐Ÿงช Usage

    code-mood
    code-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