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

gh-alias-cli

v1.0.10

Published

A CLI tool for GitHub command aliases.

Downloads

18

Readme

GitHub CLI Alias Tool

Overview

The GitHub CLI Alias Tool simplifies and accelerates common GitHub operations with easy-to-use command aliases.Helping developers streamline their workflows and enhance productivity.

Installation

Install the GitHub CLI Alias Tool globally using npm:

npm install -g gh-alias-cli

Commands

gnb <branch-name>

Alias for: git checkout -b <branch-name>

Creates and switches to a new Git branch.

Usage:

gnb <branch-name>

gc <message>

Alias for: git commit -m "<message>"

Commits changes with a specified message.

Usage:

gc <message>

gp

Alias for: git push

Pushes changes to the remote repository.

Usage:

gp

gpl [branch-name]

Alias for: git pull or git pull origin <branch-name>

Pulls changes from the remote repository. Defaults to the current branch if no branch name is provided.

Usage:

gpl [branch-name]

gco <branch-name>

Alias for: git checkout <branch-name>

Switches to an existing Git branch.

Usage:

gco <branch-name>

grst <commit-hash>

Alias for: git reset --hard <commit-hash>

Resets the current branch to the specified commit, discarding all changes.

Usage:

grst <commit-hash>

gpr

Alias for: gh pr create --base <base-branch> --head <head-branch>

Create a GitHub Pull Request directly from your CLI without needing to use the UI. This command allows you to raise a PR for the dev or main branch from the command line.

Flags:

  • -d: Use dev as the base branch.
  • -m: Use main as the base branch.

Usage:

gpr [-d | -m]

Examples:

gpr -d

Creates a Pull Request from the current branch to the dev branch.

gpr -m

Creates a Pull Request from the current branch to the main branch.

gpr

Creates a Pull Request from the current branch to the default base branch, which is dev. If you don't specify a flag, it will default to dev.

pre requisite

install-gh <platform>

Installs GitHub CLI based on the specified platform.

Platforms:

  • darwin (macOS)
  • linux (various distributions)
  • win32 (Windows)

Example Usage:

  • To install on macOS: gh-alias-cli install-gh darwin
  • To install on Ubuntu: gh-alias-cli install-gh linux
  • To install on Windows: gh-alias-cli install-gh win32