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

commit-message-template

v1.0.1

Published

Interactive git commit message formatter with ticket number support

Readme

commit-message-template

npm License: MIT

A Node.js CLI tool for creating standardized git commit messages with ticket numbers and customizable templates.

📦 Installation

npm install -g commit-message-template

The tool will automatically set up the git alias during installation.

🚀 Quick Start

# Create a commit with interactive prompt
git ffc

# Update the commit message template
git ffc --update-template="path/to/template.txt"

# Bypass validation checks if needed
git ffc --nocheck

✨ Features

  • 🎯 Interactive Interface: User-friendly command-line prompts
  • 🎨 Colored Output: Better readability with syntax highlighting
  • 🎫 Ticket Integration: Automatic ticket number detection from branch names
  • 📝 Template System: Customizable commit message templates
  • 🔄 Multi-line Support: Easy addition of detailed change descriptions
  • 🌐 Cross-platform: Works on Windows, macOS, and Linux
  • 🔒 Basic Validation: Essential checks for paths, templates, and ticket numbers
  • 📋 Staging Checks: Automatic verification of staged files before commit

📋 Usage

Basic Usage

git ffc

The tool will:

  1. Check for staged files and display them (up to 10 files)
  2. Guide you through creating a commit message with the following structure:
FWF-123: [Type] Description

- Change 1
- Change 2
- Change 3

Staged Files Display

When you run git ffc, the tool will first show you which files are staged for commit:

📦 Files staged for commit:
-------------------
- src/file1.js
- src/file2.js
- src/file3.js
- ... and 7 other files
-------------------

If no files are staged, you'll see:

⚠️  No files are staged for commit.
   Use git add to stage files before running this command.

Custom Templates

You can customize the commit message format by providing your own template:

git ffc --update-template="path/to/template.txt"

Template Format

The template file should be a text file containing placeholders for the commit message components:

{ticket}: [{type}] {description}

{body}

Required placeholders:

  • {ticket}: The ticket number (e.g., FWF-123)
  • {type}: The commit type
  • {description}: The commit description
  • {body}: Optional multi-line body (will be removed if no body is provided)

Bypassing Validation

If you encounter validation issues, you can bypass the checks using the --nocheck flag:

git ffc --nocheck

This will skip:

  • Path validation
  • Template validation
  • Ticket number format validation
  • Permission checks

🔧 Configuration

Commit Types

The tool supports the following commit types:

| Type | Description | |------|-------------| | Feature | New features or functionalities | | Bugfix | Corrections of code errors or bugs | | Hotfix | Urgent fixes addressing critical issues | | Modified | General modifications or updates | | Documentation | Documentation/changelog changes only |

Features in Detail

  1. Ticket Number

    • Automatically detects ticket number from branch name (pattern: FWF-XXX)
    • Validates ticket number format
    • Required field
  2. Commit Type

    • Interactive selection from predefined types
    • Each type has a description
    • Required field
  3. Description

    • Free-form text description of the changes
    • Required field
  4. Body

    • Optional multi-line body for detailed changes
    • Each line is automatically prefixed with a hyphen
    • Press Enter twice to finish
  5. Staging Checks

    • Automatically verifies staged files before proceeding
    • Shows up to 10 staged files with a count of remaining files
    • Prevents commits when no files are staged
    • Provides clear instructions when files need to be staged

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Inspired by conventional commit messages
  • Built with inquirer for interactive prompts
  • Uses chalk for colored output
  • Powered by simple-git for git operations