Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sindresorhus/is-online-cli
- Owner: sindresorhus
- License: mit
- Created: 2015-06-25T22:44:40.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T15:42:21.000Z (5 months ago)
- Last Synced: 2024-10-29T22:38:27.304Z (about 2 months ago)
- Topics: cli, cli-app, connectivity, detect, internet, internet-connection, javascript, network, nodejs, online, ping, reachability
- Language: JavaScript
- Size: 18.6 KB
- Stars: 67
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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 --helpUsage
$ is-onlineOptions
--timeout Seconds to wait for a server to respond (Default: 5)Example
$ is-online
✔ OnlineExit code 0 if online and 1 if offline.
```## Related
- [is-online](https://github.com/sindresorhus/is-online) - API for this package