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

https://github.com/joakin/do-i-have-internet

Continuously check if your connection is working on the command line.
https://github.com/joakin/do-i-have-internet

Last synced: over 1 year ago
JSON representation

Continuously check if your connection is working on the command line.

Awesome Lists containing this project

README

          

## do-i-have-internet

Simple `npm` based cli for knowing when the internet goes up or down.

Useful for diagnosing network cuts or instability in a simple way.

```
npm install -g do-i-have-internet
```

It uses exponential back off until ~30 seconds using the fib sequence when we
are online. When offline, it backs to try every second.

### Example

```
# Starting with the internet off, and turning it on and off
$ do-i-have-internet # or doihaveinternet
DOWN 8/18/2015 12:57:52 PM
UP 8/18/2015 12:58:02 PM
DOWN 8/18/2015 12:58:12 PM
UP 8/18/2015 12:58:18 PM
```