Felt like making a CLI internet connectivity visualizer in Deno.
Unfortunately, Deno can't do ICMP, so I can't really ping anything. And I didn't want to bother with calling the system level Ping this time (I have Clog C for that), so this just uses deno.land/x/online which polls Apple's much abused captive portal detector to check connectivity.
But it's good enough for me. I don't really need ping latency visualization or anything, just an at-a-glance yes-or-no ticker.
Usage:
clogd [--period=PERIOD] [--timestamp=TIMESTAMP]
PERIOD
: Seconds between ping attemptsTIMESTAMP
: Minutes between timestamps