npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ltd-cli-commit

v1.0.11

Published

Professional CLI tool for conventional commits with Husky integration

Readme

🔧 CLI Commit - Professional Conventional Commits Tool

npm version License Node.js TypeScript

Professional CLI tool for creating conventional commits with Husky integration


✨ Features

  • 🎨 Beautiful Colorful Output - Terminal UI with colors and emojis
  • 📝 Conventional Commits - Full support for the conventional commits specification
  • 🤖 Husky Integration - Seamlessly works with Husky Git hooks
  • Message Validation - Validates commit messages before creation
  • Interactive Prompts - User-friendly command line interface
  • 🔧 Flexible Configuration - Customizable commit types and scopes
  • 📦 Easy Installation - Install globally and use anywhere
  • 🚀 TypeScript - Written in TypeScript for type safety

📦 Installation

Global Installation (Recommended)

npm install -g cli-commit

Local Installation

npm install --save-dev cli-commit

Using npx (No Installation)

npx cli-commit commit

🚀 Quick Start

Interactive Mode

cli-commit commit
# or
cc commit
# or
cc c

With Options

# Create a feature commit
cli-commit commit -t feat -m "add user authentication"

# Create a fix commit with scope
cli-commit commit -t fix -s api -m "resolve CORS issue"

# Create a breaking change
cli-commit commit -t feat -m "change API structure" --breaking

# Commit all changes
cli-commit commit -t feat -m "major update" --all

📋 Commit Types

| Type | Description | Emoji | |---------|---------------------------------------|-------| | feat | A new feature | ✨ | | fix | A bug fix | 🐛 | | docs | Documentation only changes | 📝 | | style | Code style changes (formatting) | 💄 | | refactor | Code refactoring | ♻️ | | perf | Performance improvements | ⚡ | | test | Adding or updating tests | 🧪 | | build | Build system or dependency changes | 📦 | | ci | CI/CD configuration changes | 👷 | | chore | Maintenance tasks | 🔧 | | revert | Reverting changes | ⏪ | | merge | Merging branches | 🔀 | | hotfix | Urgent bug fix | 🚑 |


🔧 Commands

cli-commit commit (alias: cc c)

Create a new conventional commit.

Options:

| Option | Alias | Description | Example | |--------|-------|-------------|---------| | --type | -t | Commit type | -t feat | | --scope | -s | Scope of the change | -s api | | --message | -m | Commit message | -m "add feature" | | --body | -b | Commit body | -b "details" | | --footer | -f | Commit footer | -f "Closes #123" | | --breaking | -B | Breaking change flag | --breaking | | --issue | -i | Issue reference | -i #123 | | --all | -a | Stage all changes | --all | | --dry-run | -d | Show without committing | --dry-run | | --skip-validation | | Skip validation | --skip-validation | | --skip-push | | Skip push after commit | --skip-push | | --no-emoji | | Disable emoji output | --no-emoji |

Examples:

# Basic usage
cli-commit commit

# With type and message
cli-commit commit -t fix -m "resolve login bug"

# With scope
cli-commit commit -t feat -s auth -m "add OAuth support"

# Breaking change
cli-commit commit -t api -m "change response format" --breaking

# Commit all changes
cli-commit commit -t chore -m "update dependencies" -a

# Dry run
cli-commit commit -t feat -m "new feature" --dry-run

cli-commit list (alias: cc ls)

List all available commit types.

cli-commit list
# Output:
#   ✨ feat       Feature      A new feature
#   🐛 fix       Bug Fix      A bug fix
#   📝 docs      Documentation Documentation only changes
#   ...

cli-commit status (alias: cc st)

Show git status and commit readiness.

cli-commit status

cli-commit validate <message> (alias: cc v)

Validate a commit message.

cli-commit validate "feat(api): add new endpoint"

cli-commit info (alias: cc i)

Show CLI Commit information.

cli-commit info

🎨 Output Examples

Interactive Commit Creation

╔════════════════════════════════════════════════════════════════════╗
║                                                                    ║
║   CLI Commit - Conventional Commits Tool                          ║
║                                                                    ║
╚════════════════════════════════════════════════════════════════════╝

  Branch: main
  ✓ Husky installed (9.0.0)
  ✓ Commitlint configured

  ? Select the type of commit: (Use arrow keys)
    ✨ feat - A new feature
    🐛 fix - A bug fix
    ...

  ✓ Commit created successfully!
    Hash: a1b2c3d
  
  ? Push to remote? (y/N)

Commit Preview

Commit Preview:
────────────────────────────────────────────────────────────
✨ feat(api): add user authentication

Add JWT-based authentication with refresh tokens
────────────────────────────────────────────────────────────

Is this a BREAKING CHANGE? (y/N)

🔗 Integration

With Husky

CLI Commit works seamlessly with Husky. Just install Husky and use cli-commit in your commit workflow:

# Install Husky
npm install husky --save-dev
npx husky install

# Add to package.json
{
  "scripts": {
    "commit": "cli-commit commit"
  }
}

With commitlint

Validate commit messages with commitlint:

npm install @commitlint/config-conventional --save-dev

Git Aliases

Add to your ~/.gitconfig:

[alias]
  cc = !cli-commit commit
  ccc = !cli-commit commit --all

📁 Project Structure

cli-commit/
├── bin/
│   ├── cli-commit.js      # Binary entry point
│   └── postinstall.js     # Post-install script
├── src/
│   ├── index.ts          # Main CLI entry
│   ├── commands/
│   │   └── commit.ts     # Commit command
│   ├── config/
│   │   └── commit-config.ts  # Commit types & prompts
│   ├── types/
│   │   └── index.ts      # TypeScript types
│   └── utils/
│       ├── colors.ts     # Color utilities
│       ├── commit-builder.ts  # Message builder
│       └── git.ts        # Git utilities
├── test/                  # Test files
├── docs/                  # Documentation
├── package.json
├── tsconfig.json
└── README.md

🧪 Testing

# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Run in watch mode
npm run test -- --watch

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feat/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License.


👥 Author

LTD - Laboratório de Transformação Digital


🙏 Acknowledgments


Made with ❤️ by LTD - Laboratório de Transformação Digital

Estácio - Campus Florianópolis