Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ping

Swift 6.0 macOS 14+ License: MIT

Enhanced ping for macOS — timestamps, color-coded output, and a clean packet loss summary.

ping

How it works

ping wraps the system /sbin/ping, adding a timestamp to packet responses. Successful replies print in green, while timeouts and network errors print in red. On exit, including Ctrl-C, the wrapper reports the system ping's transmitted and received counts and exits with the system ping's status.

Every argument—including help, version, and invalid options—passes directly to the system binary. Non-packet help and diagnostic text remains unchanged.

Install

Build from source (requires Xcode and macOS 14+):

make build && make install

Usage

ping <target> [ping options]

All standard /sbin/ping flags work — -c (count), -i (interval), -s (packet size), etc.

Examples

# Ping with timestamps and color
ping google.com

# Five packets then stop
ping 1.1.1.1 -c 5

# Fast ping with 0.2s interval
ping 10.0.1.1 -i 0.2

License

MIT

About

Advanced ping for macOS — timestamps, color-coded output, and packet loss summary. Swift CLI replacement for /sbin/ping.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages