is-online alternatives and similar modules
Based on the "Command Line Apps" category.
Alternatively, view is-online alternatives based on common mentions on social networks and blogs.
-
ignite
Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more! 9 years of continuous development and counting. -
David
:eyeglasses: Node.js module that tells you when your package npm dependencies are out of date. -
Whatspup
:white_square_button: WhatsApp chat from commandline/console/cli using GoogleChrome puppeteer -
tty-table
Terminal table for Windows, Linux, and MacOS. Written in nodejs. Also works in browser console. Word wrap, padding, alignment, colors, Asian character support, per-column callbacks, and you can pass rows as objects or arrays. Backwards compatible with Automattic/cli-table.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of is-online or a related project?
README
is-online
Check if the internet connection is up
Works in Node.js and the browser (with a bundler).
In the browser, there is already navigator.onLine
, but it's useless as it only tells you if there's a local connection, and not whether the internet is accessible.
Install
npm install is-online
Usage
import isOnline from 'is-online';
console.log(await isOnline());
//=> true
API
isOnline(options?)
options
Type: object
timeout
Type: number
\
Default: 5000
Milliseconds to wait for a server to respond.
ipVersion
Type: number
\
Values: 4 | 6
\
Default: 4
The Internet Protocol version to use.
This is an advanced option that is usually not necessary to be set, but it can prove useful to specifically assert IPv6 connectivity.
How it works
The following checks are run in parallel:
- Retrieve icanhazip.com (or ipify.org as fallback) via HTTPS.
- Query
myip.opendns.com
ando-o.myaddr.l.google.com
DNS entries. (Node.js only) - Retrieve Apple's Captive Portal test page (this is what iOS does). (Node.js only)
When any check succeeds, the returned Promise is resolved to true
.
Proxy support
To make it work through proxies, you need to set up global-agent
.
Maintainers
Related
- is-online-cli - CLI for this module
- is-reachable - Check if servers are reachable