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 🙏

© 2025 – Pkg Stats / Ryan Hefner

git-push-helper

v1.0.3

Published

A helper tool to simplify git commit and push commands

Readme

git-push-helper

A simple and efficient command-line tool to simplify Git commit and push workflows.

Installation

Install Globally

To install git-push-helper globally, use:

npm install -g git-push-helper

Usage

After installing, you can use the push command globally to commit and push your changes in a single step.

push "<commit-message>" [branch-name] [-p] [-m]

Parameters

  • <commit-message>: The commit message to use.
  • [branch-name]: (Optional) The branch to push to. If not provided, the script will detect the current branch automatically. If the specified branch does not exist, it will be created and switched to.
  • -p: (Optional) Increment the patch version in package.json and package-lock.json before committing (e.g., 1.0.11.0.2).
  • -m: (Optional) Increment the minor version in package.json and package-lock.json before committing (e.g., 1.1.01.2.0).

Example:

  1. Push without version bump:

    push "Fix login bug"

    This will:

    • Commit your changes with the message "Fix login bug".
    • Push the changes to the detected branch.
  2. Push with patch version bump:

    push "Add new feature" -p

    This will:

    • Increment the patch version (e.g., 1.0.11.0.2).
    • Commit the version bump.
    • Commit your changes with the message "Add new feature".
    • Push the changes to the detected branch.
  3. Push with minor version bump:

    push "Add major feature" -m

    This will:

    • Increment the minor version (e.g., 1.1.01.2.0).
    • Commit the version bump.
    • Commit your changes with the message "Add major feature".
    • Push the changes to the detected branch.
  4. Specify a branch (branch exists):

    push "Update styles" dev

    This will:

    • Commit your changes with the message "Update styles".
    • Push the changes to the dev branch.
  5. Specify a branch (branch does not exist):

    push "Enhance API" new-feature

    This will:

    • Create the new-feature branch if it doesn't exist.
    • Switch to the new-feature branch.
    • Commit your changes with the message "Enhance API".
    • Push the changes to the new-feature branch.

Branch Handling

  • If the specified branch does not exist, the script will create it and switch to it.
  • If the branch already exists, the script will switch to it without attempting to recreate it.

Error Handling

If any error occurs during the Git operations, the tool will provide an error message and exit.

Features

  • Automates the git add, git commit, and git push workflow.
  • Auto-detects the current branch if no branch is specified.
  • Creates and switches to a new branch if the specified branch does not exist.
  • Supports optional version bumping:
    • -p: Increment patch version (e.g., 1.0.11.0.2).
    • -m: Increment minor version (e.g., 1.1.01.2.0).
  • Simple and intuitive CLI for quick usage.
  • Supports global installation for seamless access from anywhere.

GitHub Repository

Find the source code and contribute to the project on GitHub: git-push-helper

License

This project is licensed under the MIT License.


Made with ❤️ by Tarek El Barody