New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

do-i-have-internet

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

do-i-have-internet

keep pinging and show if internet is available

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 01 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc