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

git-suite

v1.1.0

Published

npm package to simplify git commit flow

Readme

git-suite

A CLI tool that chains common git operations into a single command. Instead of running git add, git commit, and git push separately, run one gs command with the flags you need.

gs -a -m "initial commit" --ft -p main -f

Runs:

git add .
git commit -m "feat: initial commit"
git push -f origin main

Requirements

Installation

Install globally to use the gs command anywhere:

npm install -g git-suite

Or run without a global install:

npx git-suite --help

Verify the installation:

gs --help

Quick start

Stage all changes, commit with a conventional prefix, and push to the current branch:

gs -a -m "update readme" --fx
gs -p

Stage specific files and push to a branch:

gs -a src/index.js,src/utils.js -m "fix login" --fx -p main

Usage

gs [options]

Pass one or more flags in a single invocation. Flags are processed in order, so you can combine add, commit, push, and other operations in one line.

Run gs --help at any time for the full list of available flags.

Commands

General

| Flag | Description | | -------------- | ---------------------------------------------- | | --help | Show help | | --editor-vsc | Set VS Code as the default git conflict editor | | --editor-vim | Set Vim as the default git conflict editor |

Git commands

| Flag | Description | | ----------------------------------- | ------------------------------------------------------------------------------------------------- | | -a, --add [files] | Stage files. Defaults to git add .. Separate multiple files with commas: -a file1.js,file2.js | | -m, --message <message> | Commit with a message | | -c, --checkout <branch> | Switch to a branch | | -cb, --checkout-branch <branch> | Create and switch to a new branch | | -cd | Checkout and pull the repository default branch | | -pl, --pull [branch] | Pull from origin. Defaults to the current branch | | -p, --push [branch] | Push to origin. Defaults to the current branch | | -f, --force | Force push. Must be used with -p or --push | | -rh, --reset-head [n] | Reset to HEAD~n. Defaults to 1 | | -r, --rebase [head] [target] | Rebase target onto head. Defaults to the default branch and the current branch |

Commit message prefixes

Use with -m or --message to prefix the commit message with a conventional commit type:

| Flag | Prefix | | ------ | ---------- | | --ft | feat: | | --fx | fix: | | --e | enhance: | | --c | chore: | | --d | docs: |

Example:

gs -m "add dark mode toggle" --ft
# git commit -m "feat: add dark mode toggle"

Rebase options

Use after resolving conflicts during an interactive rebase:

| Flag | Description | | ------------------- | ------------------------------ | | -rc, --continue | Continue the rebase | | -ra, --abort | Abort the rebase | | -rs, --skip | Skip the current rebase commit |

You can optionally stage changes before continuing:

gs -a -rc

Examples

Full commit and push flow

gs -a -m "initial commit" --ft -p main -f

Rebase the current branch onto the default branch

From any branch, gs -r checks out the default branch, pulls latest, returns to your branch, and rebases:

gs -r

Rebase one branch onto another

gs -r main develop

Equivalent to:

git checkout main
git pull origin main
git checkout develop
git rebase main

Omit the origin branch will rebase the current branch onto the target:

gs -r main

Equivalent to:

git checkout main
git pull origin main
git checkout <current-branch>
git rebase main

Switch to the default branch and pull latest

gs -cd

Undo the last commit

gs -rh

Continue a rebase after fixing conflicts

gs -a -rc
gs -p -f

Configuration

Set the log verbosity with the LOG_LEVEL environment variable:

| Value | Output | | --------- | ---------------------------------------------- | | debug | All logs including debug output | | info | Info, success, error, and git output (default) | | success | Success, error, and git output | | error | Errors and git output only |

Example:

LOG_LEVEL=debug gs -a -m "test commit"

Notes

  • The default branch is detected automatically from git remote show origin (usually main or master).
  • When no branch is provided for push or pull, the current branch is used.
  • Rebase may stop if conflicts occur. Resolve them, then use -rc, -ra, or -rs to continue, abort, or skip.
  • Force push (-f) rewrites remote history. Use it only when you intend to.

License

ISC

Links