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.
- Host: GitHub
- URL: https://github.com/joakin/do-i-have-internet
- Owner: joakin
- Created: 2015-08-18T11:00:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T17:00:12.000Z (about 8 years ago)
- Last Synced: 2025-03-06T04:35:50.770Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```