Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/is-online-cli

Check if the internet connection is up
https://github.com/sindresorhus/is-online-cli

cli cli-app connectivity detect internet internet-connection javascript network nodejs online ping reachability

Last synced: 4 days ago
JSON representation

Check if the internet connection is up

Awesome Lists containing this project

README

        

# is-online-cli

> Check if the internet connection is up

## Install

```sh
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

- [is-online](https://github.com/sindresorhus/is-online) - API for this package