Is Online is a JavaScript package that checks whether a device can actually reach the internet rather than merely having a local network connection. It works in Node.js and modern browsers when bundled. The function returns a promise that resolves to a simple online or offline Boolean result. Developers can set a timeout, cancel a check through AbortSignal, and choose IPv4 or IPv6 connectivity. Custom fallback URLs can be supplied when the default probes are unavailable or blocked. In Node.js, the package combines HTTPS, DNS, captive-portal, and Cloudflare checks in parallel for greater reliability. This makes it useful for apps that need a practical connectivity test before starting network-dependent work.
Features
- Actual internet accessibility detection
- Node.js and modern browser support
- Configurable connectivity timeout
- AbortSignal cancellation
- IPv4 and IPv6 checking
- Custom fallback connectivity URLs
Categories
InternetLicense
MIT LicenseFollow Is Online
Other Useful Business Software
Ship Agents Faster
Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Is Online!