An open API service indexing awesome lists of open source software.

https://github.com/5310/clogd

A CLI internet connectivity visualizer in Deno
https://github.com/5310/clogd

deno

Last synced: 2 months ago
JSON representation

A CLI internet connectivity visualizer in Deno

Awesome Lists containing this project

README

        

# Clog D

[![deno](https://img.shields.io/badge/Deno-≥1.14-blue?style=for-the-badge)](https://deno.land/)
![license](https://img.shields.io/github/license/5310/clogd?style=for-the-badge)
![code-size](https://img.shields.io/github/languages/code-size/5310/clogd?style=for-the-badge)

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](https://github.com/5310/clogc) for that), so this just uses [deno.land/x/online](https://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.

![A screenshot of Clog D in "action"](./screenshot.png)

Usage:
```sh
clogd [--period=PERIOD] [--timestamp=TIMESTAMP]
```

- `PERIOD`: Seconds between ping attempts
- `TIMESTAMP`: Minutes between timestamps