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 πŸ™

Β© 2024 – Pkg Stats / Ryan Hefner

gitta

v0.0.3

Published

πŸ’Ž Personalized git commit messages.

Downloads

7

Readme

πŸ’Ž Gitta

A simple CLI to generate and format your commit messages with an emoji, type, and scope. Gitta aims to streamline your commit messages to follow consistently with the Conventional Commits specification.

✨ Features

  • Consistent commit messages every time.
  • Customizable emojis and prefixes.
  • Option to update from default or custom source for newly added emojis/prefixes.
  • Quick lookup for emojis.

πŸš€ Installation

npm i -g gitta

⚑ Commands

gitta -c/--commit

Instantly commit you changes by answering a few short prompts.

$ gitta -c

? Select an emoji (Use arrow keys or type to search)
> ✨ :sparkles: - Adding a new feature to the code.
  πŸ› :bug: - Fixed bug in code.
  πŸ“’ :ledger: - Updated documentation for project.
  🍸 :cocktail: - Updated code formatting and styling.
  🎨 :art: - Refactoring code in project.
  βœ… :white_check_mark: - Adding or updating tests.
  πŸ”§ :wrench: - Fixing unreported issue in code.
(Move up and down to reveal more choices)
? Select an emoji 🎨 :art: - Refactoring code in project.

? Specify file(s) updated constant.ts
? Set commit title Inherit name and version from package.json
? Set commit message (optional)
[master 017b307] :art: refactor(constant.ts): Inherit name and version from package.json 1 file changed, 2 insertions(+), 2 deletions(-)

gitta -e/--edit

Open directory of emoji and prefixes files for editing.

$ gitta -e

Opening emoji/prefix directory...

gitta -h/--help

Display help message.

   πŸ’Ž Personalized git commit messages.

  Usage
      $ gitta -[cehlrsuv]

  Options
      --commit, -c        An interactive prompt that handles committing your changes.
      --edit, -e          Edit stored emoji/prefix files.
      --help, -h          Display help message.
      --list, -l          List your configured gitta emojis/prefixes.
      --reconfig, -r      Reconfigure gitta settings.
      --search, -s        Search for emoji given keywords.
      --update, -u        Refresh list of emojis/prefixes (does not overwrite custom).
      --version, -v       Display version of gitta.

  Examples
      gitta -l

gitta -l/--list

List configured (default + custom) emojis and prefixes for gitta.

List emojis

$ gitta -l

? What data do you want to list out? (Use arrow keys)
> emojis
  prefixes

? What data do you want to list out? emojis
✨ :sparkles: (feat) - Adding a new feature to the code.
πŸ› :bug: (fix) - Fixed bug in code.
πŸ“’ :ledger: (docs) - Updated documentation for project.
🍸 :cocktail: (style) - Updated code formatting and styling.
...

List prefixes

$ gitta -l

? What data do you want to list out? (Use arrow keys)
  emojis
> prefixes

? What data do you want to list out? prefixes
feat (Feature) - Adding new feature to existing project.
bug (Bug Fix) - Fixing existing bugs.
chore (Chore) - Something that just had to be done.
docs (Documentation) - Adding documentation to project.
...

gitta -r/--reconfig

Reconfigure gitta settings.

$ gitta -r

? Automatically add all files to your commit. (Y/n) Y
? Choose how your emojis should be displayed. (Use arrow keys)
> :tada:
  πŸŽ‰

? Choose how your emojis should be displayed. :tada:
? Set if commits should be signed by default. (Y/n) Y
? Set if Conventional Commits standard should be used (specify files affected by commit). (Y/n) Y
? Set Gitta emoji refresh url. (https://raw.githubusercontent.com/Spiderpig86/gitta/master/configuration/emojis.json)
? Set Gitta prefix refresh url. (https://raw.githubusercontent.com/Spiderpig86/gitta/master/configuration/prefixes.json)

gitta -s/--search

Interactive search for emojis.

$ gitta -s

? Search for emoji:  (Use arrow keys or type to search)
> ✨ :sparkles: (feat) - Adding a new feature to the code.
  πŸ› :bug: (fix) - Fixed bug in code.
  πŸ“’ :ledger: (docs) - Updated documentation for project.
  🍸 :cocktail: (style) - Updated code formatting and styling.
  🎨 :art: (refactor) - Refactoring code in project.
  βœ… :white_check_mark: (test) - Adding or updating tests.
  πŸ”§ :wrench: (chore) - Fixing unreported issue in code.
(Move up and down to reveal more choices)

gitta -u/--update

Update emojis/prefixes from source specified in your configuration.

$ gitta -u

βœ” Succeeded fetching prefixes!
βœ” Succeeded fetching emojis!

gitta -v/--version

Get verison of gitta.

$ gitta -v

0.0.1

βš™ Configuration

gitta can be configured in 2 places:

  • ~/.gitta - stores emoji and prefix files.
  • ~/gitta-nodejs\Config\config.json - settings handled by Conf when you configre with gitta -r. Note that the path is AppData\Roaming\ for Windows.

You can actually add your own emojis and prefixes. All you need to do is add it to the custom sections. These will never be overwritten when using gitta -u.

Emojis

{
    "default": [
        {
            "emoji": "✨",
            "code": ":sparkles:",
            "type": "feat",
            "name": "sparkles",
            "description": "Adding a new feature to the code."
        }
    ],
    "custom": []
}

Prefixes

{
    "default": [
        {
            "name": "Feature",
            "description": "Adding new feature to existing project.",
            "prefix": "feat"
        }
    ],
    "custom": []
}

Default Emojis

| emoji | code | type | description | |-------|-------------------------------|----------|--------------------------------------| | ✨ | :sparkles: | feat | Adding a new feature to the code. | | πŸ› | :bug: | fix | Fixed bug in code. | | πŸ“’ | :ledger: | docs | Updated documentation for project. | | 🍸 | :cocktail: | style | Updated code formatting and styling. | | 🎨 | :art: | refactor | Refactoring code in project. | | βœ… | :white_check_mark: | test | Adding or updating tests. | | πŸ”§ | :wrench: | chore | Fixing unreported issue in code. | | πŸš€ | :rocket: | chore | Perfoming deployment for code. | | πŸ”’ | :lock: | chore | Fixing security issues. | | 🚧 | :construction: | feat | Work in progress. | | ⬆️ | :arrow_up: | chore | Upgrading dependecies. | | βž• | :heavy_plus_sign: | chore | Adding a dependency. | | βž– | :heavy_minus_sign: | chore | Removing a dependency. | | βͺ | :rewind: | chore | Reverting changes. | | πŸ”€ | :twisted_rightwards_arrows: | chore | Merging branches. | | ❗️ | :heavy_exclamation_mark: | feat | Adding breaking changes. | | 🏷️ | :label: | chore | Updating type definitions. | | πŸ—‘οΈ | :wastebasket: | chore | Remove deprecated code. | | πŸŽ‰ | :tada: | feat | Initial commit. | | ⚑️ | :zap: | feat | Performance improvement. | | πŸ†˜ | :sos: | chore | Critical hotfix. | | ⬇️ | :arrow_down: | chore | Downgrading dependecies. | | πŸ’š | :green_heart: | chore | Fix CI build. | | πŸŒ‡ | :city_sunrise: | chore | Infrastructure changes. |