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-accounts

v1.0.2

Published

CLI para administrar múltiples cuentas de GitHub en Windows usando keytar. Permite agregar, listar, eliminar y seleccionar cuentas cambiando automáticamente la configuración global de Git.

Readme

Git Accounts CLI

npm version License: MIT

Git Accounts CLI is a command-line tool to manage multiple GitHub accounts using keytar.
It allows you to add, list, select, edit, export, and delete GitHub accounts easily, and automatically configures Git for commits and pushes.


✨ Features

  • Add GitHub accounts with username, email, commit name/email, and personal access token (PAT)
  • 📋 List all saved accounts with details in a clean format
  • ✏️ Edit accounts field by field, with save/cancel options
  • 💾 Export accounts to JSON
  • 🔄 Use an account to configure git config --global user.name and user.email
  • 🗑️ Delete accounts interactively with confirmation
  • 📘 Tutorial built-in, with Continue option
  • ❌ Always possible to go back to the Main Menu or cancel safely
  • 🔒 Safe handling of secrets using keytar
  • 🌍 Works on Windows, macOS, and Linux

📦 Installation

Install globally using npm:

npm install -g git-accounts

🚀 Usage

You can use the CLI in two ways:

1. Interactive menu

git-accounts

You'll see a menu:

📌 Select an action:
- ➕ Add Account
- 📋 List Accounts
- 🔄 Use Account
- 🗑️ Delete Account
- 📘 Tutorial
- ❌ Exit

2. Oneline commands

# Add a new account
git-accounts add <githubUser> <githubEmail> <commitName> <commitEmail> <token>

# List saved accounts
git-accounts list

# Use/select an account
git-accounts use

# Delete an account
git-accounts delete <githubUser>

👉 If you omit some arguments in add, the CLI will prompt you interactively.


🖥️ Example

git-accounts add FT-Key [email protected] "Franco Toledo" [email protected] ghp_yourPAT
git-accounts list
git-accounts use
git-accounts delete FT-Key

💡 Tips

  • For commit configuration (user.name and user.email), press Enter to reuse your GitHub credentials.
  • You can always select ⬅️ Back to Main Menu or Cancel.
  • Press Ctrl+C anytime to safely exit interactive prompts.

🤝 Contributing

Contributions are welcome! Feel free to:

  • Report issues
  • Suggest improvements
  • Submit pull requests

👤 Author

Franco Nicolas Toledo


📄 License

MIT License © Franco Nicolas Toledo