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

qit-cli

v1.1.0

Published

A CLI tool to automate git commands. Quick git add, commit, and push with one command

Downloads

147

Readme

Qit 🚀

A simple CLI tool to automate your git workflow. Qit combines the three most common git commands (git add ., git commit -m, and git push) into a single command.

Installation

Global Installation(preferred)

To install the qit-cli globally so it can be used anywhere on your system:

npm install -g qit-cli

Local Installation

If you prefer to install it locally in a specific project folder:

npm install qit-cli

To run it locally, use npx in your project folder:

npx qit "Your commit message"

If installed glabally, just use qit in your project folder:

qit "Your commit message"

Usage

Basic Usage

To quickly stage, commit and push your changes, use:

qit "your commit message"

The command above will:

  1. Stage all changes (git add .)
  2. Create a commit with your message (git commit -m "your message")
  3. Push to your configured branch (git push origin )

Examples

# Fix a bug
qit "fixed navigation menu bug"

# Add new feature

qit "added dark mode support"

# Update documentation

qit "updated installation docs"

Handling Failed Pushes

If a push fails (e.g., due to no internet connection), the changes will be committed locally but remain unpushed. When your internet connection is restored, you can try pushing again using:

qit p

This will run:

git push origin <branch>

Configuration

Branch Configuration

Create a qit.config.json file in your project root to customize the target branch:

{
  "branch": "develop"
}

Default Settings

  • If no config file exists, Qit pushes to main branch
  • All changes are staged using git add .
  • Changes are pushed to origin remote

Features

Core Features

  • Single Command Operation: Execute multiple git commands with one command
  • Configurable Branch: Push to your preferred branch using config file
  • Smart Defaults: Works out of the box with sensible defaults
  • Clear Feedback: Colorful terminal output shows operation progress

Terminal Output

  • Stage changes: Blue indicators
  • Commit progress: Yellow indicators
  • Push status: Magenta indicators
  • Success messages: Green indicators
  • Error messages: Red indicators with clear descriptions

Requirements

System Requirements

  • Node.js 14 or higher
  • Git installed and configured
  • Active internet connection for pushing
  • A git repository initialized with a remote

Repository Requirements

  • Initialized git repository
  • Configured remote repository
  • Valid git credentials

Error Handling

Qit provides clear error messages for common issues:

Common Errors

  • No Commit Message
✗ Error: Please provide a commit message
Usage: qit <commit message>
  • git operation failure
ERROR
✗ Git operation failed: [error details]

Error Prevention

  • Always include a commit message
  • Ensure you have internet connection before pushing
  • Check that your git credentials are configured
  • Verify that your repository has a remote configured

Dependencies

  • execa: Modern subprocess handling
  • ansi-colors: Terminal styling
  • fs & path: File system operations

Contributing

Getting Started

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request