Gathering detailed insights and metrics for gitcleancommit
Gathering detailed insights and metrics for gitcleancommit
Gathering detailed insights and metrics for gitcleancommit
Gathering detailed insights and metrics for gitcleancommit
A beautiful CLI tool for creating clean, conventional git commits with spell checking and automatic integration
npm install gitcleancommit
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (75.83%)
JavaScript (24.17%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
33 Commits
2 Branches
2 Contributors
Updated on Jul 10, 2025
Latest Version
1.0.5
Package Id
gitcleancommit@1.0.5
Unpacked Size
95.64 kB
Size
23.35 kB
File Count
17
NPM Version
10.8.2
Node Version
20.19.3
Published on
Jul 10, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A beautiful CLI tool for creating clean, conventional git commits with real-time spell checking and seamless git workflow automation
1# Install globally (recommended) 2npm install -g gitcleancommit 3 4# Or use with npx (no installation) 5npx gitcleancommit 6 7# Or install as a dev dependency 8npm install --save-dev gitcleancommit
1# Run the complete workflow (add → commit → push) 2gitclean 3 4# That's it! GitClean will handle everything else 🎉
gitclean
(default)The main command that runs the complete git workflow:
git add .
)1gitclean
gitclean commit
Create a commit without the full workflow (no automatic staging or pushing):
1gitclean commit 2 3# Hook mode (used internally by git hooks) 4gitclean commit --hook <commit-msg-file>
gitclean setup
/ gitclean install
Install GitClean as a git hook in your repository:
1gitclean setup 2# or 3gitclean install
This creates a prepare-commit-msg
hook that automatically runs GitClean when you use git commit
.
gitclean uninstall
/ gitclean remove
Remove GitClean git hooks from your repository:
1gitclean uninstall 2# or 3gitclean remove
gitclean status
/ gitclean s
Display the current git status:
1gitclean status 2# or 3gitclean s
gitclean spellcheck
/ gitclean spell
Test the spell checker with custom text:
1# Basic spell check 2gitclean spellcheck "your text here" 3 4# Verbose mode - shows dictionary stats 5gitclean spellcheck "your text" --verbose 6gitclean spellcheck "your text" -vr
gitclean test
Run the built-in spell checker test suite with common development terms:
1gitclean test
gitclean --version
/ gitclean -v
Show the current version:
1gitclean --version 2# or 3gitclean -v
GitClean supports six conventional commit types, each with its own color and emoji:
Type | Emoji | Color | Description | Example |
---|---|---|---|---|
ADD | ➕ | Green | Add new code, features, or files | ADD: user authentication module |
FIX | 🐛 | Red | Fix bugs or issues | FIX: resolve memory leak in parser |
UPDATE | 🔄 | Yellow | Update existing code or features | UPDATE: improve error handling |
DOCS | 📚 | Blue | Documentation changes only | DOCS: add API usage examples |
TEST | ✅ | Cyan | Add or update tests | TEST: add unit tests for validators |
REMOVE | 🗑️ | Bright Red | Remove code, files, or features | REMOVE: deprecated API endpoints |
GitClean features an advanced spell checker specifically optimized for development:
The spell checker recognizes common development terms including:
javascript
, typescript
, python
, java
, etc.react
, vue
, angular
, nodejs
, webpack
, etc.commit
, merge
, rebase
, checkout
, etc.docker
, kubernetes
, ci/cd
, aws
, azure
, etc.api
, http
, cors
, jwt
, oauth
, etc.Automatically detects and corrects common programming typos:
fucntion
→ function
recieve
→ receive
occured
→ occurred
seperate
→ separate
componnet
→ component
databse
→ database
1$ gitclean 2 3 GitClean Banner (ASCII Art) 4 Clean, conventional commits made easy 5 6🔍 Found changes to commit 7This will: git add . → git commit → git push 8 9🔤 Real-time spell checking enabled for text inputs! 10 11? Select the type of change you're committing: (Use arrow keys) 12❯ ADD - Add new code or files 13 FIX - A bug fix 14 UPDATE - Updated a file or code 15 DOCS - Documentation changes 16 TEST - Adding tests 17 REMOVE - Removing code or files
Add a scope to categorize your commits:
1? What is the scope of this change? (optional): auth 2? Write a short, imperative tense description: implement JWT token validation 3 4# Results in: ADD(auth): implement JWT token validation
Mark commits that introduce breaking changes:
1? Are there any breaking changes? Yes 2 3# Adds "BREAKING CHANGE:" to the commit body 4# Results in: ADD(auth)!: new authentication system
Link commits to issues:
1? Add issue references: fixes #123, closes #456 2 3# Adds issue references to the commit body
1$ gitclean 2 3# After answering all prompts: 4 5┌─ Final Commit Message ──────────────────────────────────┐ 6│ ➕ ADD(auth): implement JWT token validation │ 7│ │ 8│ Added secure token validation with refresh capability │ 9│ │ 10│ 💥 BREAKING CHANGE: implement JWT token validation │ 11│ │ 12│ fixes #123, closes #456 │ 13└─────────────────────────────────────────────────────────┘ 14 15? Ready to commit? Yes 16 17🚀 Starting GitClean workflow... 18 19✔ Files added: . 20✔ Commit created successfully! 21✔ Pushed to main successfully! 22 23✅ GitClean workflow completed successfully! 24📦 Changes pushed to main
Test the spell checker with your own text:
1$ gitclean spellcheck "Fix fucntion that handls user authetication" 2 3🔍 Checking spelling... 4 5┌─ Spell Check Results ───────────────────────────────────┐ 6│ ⚠️ Spelling issues found: │ 7│ │ 8│ Original: Fix fucntion that handls user authetication │ 9│ Corrected: Fix function that handles user authentication│ 10│ │ 11│ 📝 Issues found: │ 12│ • fucntion → function │ 13│ • handls → handles │ 14│ • authetication → authentication │ 15└─────────────────────────────────────────────────────────┘
See detailed spell checker statistics:
1$ gitclean spellcheck --verbose 2 3┌─ Spell Checker Status ──────────────────────────────────┐ 4│ 📊 Spell Checker Information │ 5│ │ 6│ Initialized: ✅ │ 7│ Dictionary: ✅ Loaded │ 8│ Technical words: 200+ │ 9│ Typo correction rules: 100+ │ 10│ │ 11│ This spell checker is optimized for: │ 12│ • Git commit messages │ 13│ • Programming terminology │ 14│ • Common development terms │ 15│ • Technical abbreviations │ 16└─────────────────────────────────────────────────────────┘
Run the built-in test suite:
1$ gitclean test 2 3┌─ Spell Checker Test Suite ──────────────────────────────┐ 4│ 🧪 Running Spell Checker Tests │ 5│ │ 6│ Testing with common development-related text... │ 7└─────────────────────────────────────────────────────────┘ 8 91. Testing: "Fix typo in fucntion name" 10 ❌ Found 1 issue(s) 11 🔧 Corrected: "Fix typo in function name" 12 132. Testing: "Add new componnet for user managment" 14 ❌ Found 2 issue(s) 15 🔧 Corrected: "Add new component for user management" 16 17# ... more test cases ... 18 19┌─ Test Results ──────────────────────────────────────────┐ 20│ ✅ Test completed! │ 21│ │ 22│ Dictionary status: Active │ 23│ Total technical terms: 200+ │ 24│ Total typo rules: 100+ │ 25└─────────────────────────────────────────────────────────┘
Install GitClean as a git hook to use it with standard git commands:
1# Install the hook 2gitclean setup 3 4# Now use git commit as usual 5git add . 6git commit # GitClean will automatically run!
Remove the git hook if needed:
1gitclean uninstall
The git hook integration:
prepare-commit-msg
hook in .git/hooks/
git commit
GitClean works with zero configuration! However, here are some behaviors to note:
git add .
(all files)origin
Press ESC
at any time during the prompts to safely cancel the operation:
1┌─ Operation Cancelled ───────────────────────────────────┐ 2│ ⚠️ Operation cancelled by user (ESC pressed) │ 3│ │ 4│ Run the command again when you're ready to commit. │ 5└─────────────────────────────────────────────────────────┘
GitClean automatically detects if you have changes to commit:
1$ gitclean 2⚠️ No changes to commit 3Make some changes and run `gitclean` again 4 5💡 Try these commands: 6• gitclean spellcheck "your text" - Test spell checker 7• gitclean test - Run spell checker tests 8• gitclean setup - Install git hooks
GitClean provides clear error messages and recovery suggestions:
git init
gitcleancommit/
├── src/
│ ├── index.ts # CLI entry point and command definitions
│ ├── prompt.ts # Interactive prompt system with spell checking
│ ├── git-integration.ts # Git operations (add, commit, push)
│ ├── spellcheck.ts # Spell checking engine and dictionary
│ └── banner.ts # ASCII art banner display
├── dist/ # Compiled JavaScript (generated)
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
├── setup.js # Post-install setup script
├── README.md # This file
└── LICENSE # MIT License
1# Initialize a git repository 2git init
1# Check what has changed 2gitclean status 3# or 4git status
1# Add a remote repository 2git remote add origin https://github.com/username/repo.git 3 4# Check current remotes 5git remote -v
1# Reinstall globally 2npm install -g gitcleancommit 3 4# Or use npx 5npx gitcleancommit
1# Check spell checker status 2gitclean spellcheck --verbose 3 4# Test with sample text 5gitclean test
We welcome contributions! Here's how to get started:
git clone https://github.com/yourusername/gitCleanCommit.git
npm install
git checkout -b feature/amazing-feature
npm run build
npm start
npm start
😉git push origin feature/amazing-feature
1# Clone the repository 2git clone https://github.com/thissudhir/gitCleanCommit.git 3cd gitCleanCommit 4 5# Install dependencies 6npm install 7 8# Build the TypeScript files 9npm run build 10 11# Run in development mode 12npm run dev 13 14# Test the CLI locally 15npm start
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Abhishek
Happy committing! 🚀 May your git history always be clean and meaningful.
No vulnerabilities found.
No security vulnerabilities found.