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

gitswap

v1.2.9

Published

easily swap between many github accounts on one machine

Readme

gitswap

Build Status npm version GitHub version

This project has come out of my annoying habit of committing to my personal repos with my work account and more embarrassingly committing to my work repos with my personal account.

Idea came from https://github.com/joealba/gitswitch, a ruby git profile switcher.

How gitswap works depends on the directory where you run it. If within a git repository directory invoking gitswap with a profile will append/change this in the .git/config file. If not in a git repository directory then the global ~/.gitconfig file is updated.

Install

npm install -g gitswap

Usage

To initialize, run:

gitswap

Gitswap will read your .gitconfig file and check for a .gitswap file in your home directory, if one is not present, it will ask you to create one.

It takes the current username and email in your .gitconfig file and places these under the tag of orig.

Use the flag --add to add further profiles to your .gitswap file. Once you've filled your .gitswap file with all the profiles you need simply run the following to swap to that profile:

gitswap [tag]

If this is run within a git repository it will update the local config for that repo with the correct user details. You can override this by passing the --global flag (see below).

Optional flags

There are a number of flags you can pass to gitswap:

Add new

gitswap --add [-a]

Prompts for a new profile to be added to your cache.

Current profile

gitswap --current [-c]

Lists the current profile in use, if within a git repo, will report local profile else will return the global profile.

List all

gitswap --list [-l]

Lists all profiles saved in your .gitswap file

Global flag

gitswap [tag] --global [-g]

Updates the global .gitconfig file to the supplied tag. The --global/-g are optional. If you are in a git repository directory you may wish to use this to skip updating the repo config and jump straight to update the global, if you are not in a repo directory gitswap will update the global config as a default.

Version

gitswap --version [-v]

Displays the current npm version package you have installed

Updating

You most likely installed through npm, simply run the following to update:

npm update gitswap -g