Home

Awesome

is-online-cli

Check if the internet connection is up

<img src="screenshot.png" width="397" height="98">

Install

npm install --global is-online-cli

Usage

$ is-online --help

  Usage
    $ is-online

  Options
    --timeout  Seconds to wait for a server to respond (Default: 5)

  Example
    $ is-online
    ✔ Online

  Exit code 0 if online and 1 if offline.

Related