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

esgit

v2.0.0

Published

CLI package with simplified aliases for git commands

Downloads

2

Readme

easy-git - esgit

CLI package with simplified aliases for git commands.

The problem

git can be easy to use sometimes, but some other times, it's complex. This requires googling or stackoverflow.

The solution

esgit! esgit provides simpler aliases which makes working with git easy. The simplicity is also aided by an interactive autocomplete platfrom by enquirer for selection and autocompletion of commands. Added to this is that the real git commands are shown right there in the terminal before execution.

Note that esgit's command are not executed. These are just aliases that trigger the real git commands.

Benefits

  1. It makes working with git easier, plus, you learn git.
  2. You do not have to switch between esgit and git for different situations. You're probably thinking, "If I want to use a simple alias provided by this package, I'd use it, but if I want to just clone a repository, I'd use git". But it isn't necessary. When esgit cannot execute a command (which is not provided in its list), it hands over the commands to git to execute. This way, esgit sorts of does all git does.

Usage

Installation

It can be installed with npm which means you must have node installed for npm to be available.

npm i -g esgit

The g flag is important so that the package can be used as a CLI command.

Examples

You can enter esgit in your terminal to show the list of commands which you can choose from. When you do so, you see the commands displayed like this:

Or you can type the command directly in the terminal if you know them.

  1. To change your last commit message
    esgit edit-commit "new message here"

Result:

git-command: git commit --amend -m "new message here"
#  the result
  1. Remove last commit from master and keep the changes
esgit remove-last-master-commit-keep-changes

Result:

git-command: git reset HEAD~ --hard
# the result
  1. Cloning a git repository isn't hard, but let's assume that esgit does not have it in its list:
esgit clone <url> <folder>

Result:

esgit: 'clone' does not exist
Attempting to do 'git clone <url> <folder>'
# clone status and done!

Some of the commands are long, because this package aims for simplicity and easy understanding of action to be executed. Moreover, you can just get all the commands by just entering esgit command.

To know what a command does, simply enter the following:

esgit help

It brings a list of commands which you can select from to know the properties.

Find a list of all commands here

Issues and Contributions

Your contribution to this project would be highly appreciated. Could be a documentation issue, pull request, feature request, they are all welcome.

LICENSE

MIT