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

@xavorus/pingx

v1.0.4

Published

An improved ping command with colorful styling

Readme

PingX - Enhanced Cross-Platform Ping CLI 🔵⚡

PingX is a modern, colorful, and feature-rich alternative to the traditional ping command.
It provides improved readability, detailed statistics, speed test capability, and a polished CLI experience across Windows, Linux, and macOS.


✨ Features

🎨 Color-Enhanced Output

Ping responses are displayed with dynamic colors based on latency:

| Latency | Color | Meaning | |-----------------|--------|----------------| | < 50ms | 🟢 Green | Excellent | | 50–100ms | 🟡 Yellow | Good | | 100–200ms | 🟠 Orange | Fair | | > 200ms | 🔴 Red | Poor |

🏷 Rich CLI Output

  • Beautiful ASCII banner
  • Timestamp for each response
  • Error detection (timeout, unreachable, etc.)

📊 Detailed Statistics

At the end of execution, PingX shows:

  • Packets sent/received/lost
  • Packet loss percentage
  • Minimum, maximum, and average latency

🌐 Internet Speed Test (Optional -s)

PingX can run a lightweight download/upload speed test after pinging:

  • Downloads a 1MB test file
  • Uploads 512KB of data
  • Displays Mbps results

🖥 Cross-Platform

Works with native ping on:

  • Windows (ping -n)
  • Linux (ping -c)
  • macOS (ping -c)

🚀 Installation

Global Installation (Recommended for CLI usage)

npm install -g @xavorus/pingx

Local Installation (Development)

npm install

💻 Usage Examples

Basic Ping

pingx google.com

Ping a specific number of packets

pingx 8.8.8.8 -c 4

Custom interval (milliseconds)

pingx 1.1.1.1 -c 5 -i 2000

Custom timeout (seconds)

pingx example.com -c 3 -t 10

Run with speed test

pingx google.com -c 3 -s

⚙️ Command Options

| Option | Description | |--------|-------------| | -c, --count <num> | Number of packets to send | | -i, --interval <ms> | Delay between packets (min 100ms) | | -t, --timeout <sec> | Timeout per packet (default: 4s) | | -s, --speed | Run speed test after pinging | | --help | Show help | | --version | Show version |


📦 Sample Output

Success

[14:30:15] ● Reply from 8.8.8.8: bytes=32 time=45ms TTL=114

Timeout

[14:30:16] ● Request timed out.

With Speed Test

Download: 28.52 Mbps
Upload:   10.31 Mbps

🛠 Development

Run tests

npm test

Manual test

node pingx.js google.com -c 3

Install globally from source

npm run install-global

🤝 Contributing

  1. Fork this repository
  2. Create a feature branch
  3. Commit your changes
  4. Push your branch
  5. Open a Pull Request

📄 License

MIT License. See the LICENSE file for details.


💡 Inspiration

PingX is inspired by the traditional system ping tool—but enhanced with color, statistics, and optional speed test to improve readability and give a better CLI experience.