Skip to content

Check if the internet connection is up

License

Notifications You must be signed in to change notification settings

sindresorhus/is-online-cli

Repository files navigation

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