is-online-cli

Check if the internet connection is up

Usage no npm install needed!

<script type="module">
  import isOnlineCli from 'https://cdn.skypack.dev/is-online-cli';
</script>

README

is-online-cli Build Status

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

Related

License

MIT © Sindre Sorhus