Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 487 Bytes

readme.md

File metadata and controls

33 lines (21 loc) · 487 Bytes

is-online-cli

Check if the internet connection is up

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