All Projects → sindresorhus → Is Reachable

sindresorhus / Is Reachable

Licence: mit
Check if servers are reachable

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Is Reachable

Is Online
Check if the internet connection is up
Stars: ✭ 894 (+259.04%)
Mutual labels:  online, detect, network, internet, ping, connectivity, browser
Connectivity
Detect if the network is up (do we have connectivity?)
Stars: ✭ 58 (-76.71%)
Mutual labels:  detect, network, browser
Gcping
Measure your latency to GCP regions
Stars: ✭ 405 (+62.65%)
Mutual labels:  network, ping, browser
connection checker
Android library for checking the internet connectivity of a device.
Stars: ✭ 26 (-89.56%)
Mutual labels:  detect, internet, ping
Flutter offline
✈️ A tidy utility to handle offline/online connectivity like a Boss
Stars: ✭ 644 (+158.63%)
Mutual labels:  network, connectivity
Fast Android Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
Stars: ✭ 5,346 (+2046.99%)
Mutual labels:  network, internet
Syscrack
Virtual Online Crime Simulator (VOCS) written in PHP 7.0
Stars: ✭ 17 (-93.17%)
Mutual labels:  online, internet
Bgpalerter
Software to monitor streams of BGP data. Pre-configured for real-time detection of visibility loss, RPKI invalid announcements, hijacks, and more.
Stars: ✭ 367 (+47.39%)
Mutual labels:  network, internet
Stabping
Continuously monitor your connection/ISP's latency & speed and view them in interactive charts
Stars: ✭ 8 (-96.79%)
Mutual labels:  network, ping
Awesome Connectivity Info
Awesome list of connectivity indexes and reports to help you better under who has access to communication infrastructure and on what terms.
Stars: ✭ 57 (-77.11%)
Mutual labels:  internet, connectivity
Vieb
Vim Inspired Electron Browser - Vim bindings for the web by design
Stars: ✭ 175 (-29.72%)
Mutual labels:  network, browser
Pale Moon
Pale Moon web browser
Stars: ✭ 512 (+105.62%)
Mutual labels:  internet, browser
Linux Wifi Hotspot
Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
Stars: ✭ 434 (+74.3%)
Mutual labels:  network, internet
Openspades
Compatible client of Ace of Spades 0.75
Stars: ✭ 769 (+208.84%)
Mutual labels:  online, network
Powershell ipv4networkscanner
Powerful asynchronus IPv4 network scanner for PowerShell
Stars: ✭ 161 (-35.34%)
Mutual labels:  network, ping
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+849%)
Mutual labels:  network, browser
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (+897.59%)
Mutual labels:  network, internet
V Offline
🔌 Simple VueJS component to detect offline & online changes.
Stars: ✭ 307 (+23.29%)
Mutual labels:  online, network
Nock Nock
🚪 Monitor and validate your websites to maintain maximum uptime.
Stars: ✭ 339 (+36.14%)
Mutual labels:  network, ping
Awesome Online Earning
💰Ways to earn extra
Stars: ✭ 70 (-71.89%)
Mutual labels:  online, internet

is-reachable

Check if servers are reachable

Works in Node.js and the browser (with a bundler).

The Node.js version will do a TCP handshake with the target's port. It attempts to detect cases where a router redirects the request to itself.

The browser version is limited by the fact that browsers cannot connect to arbitrary ports. It only supports HTTP and HTTPS and the check relies on the /favicon.ico path being present.

Install

$ npm install is-reachable

Usage

const isReachable = require('is-reachable');

(async () => {
	console.log(await isReachable('sindresorhus.com'));
	//=> true

	console.log(await isReachable('google.com:443'));
	//=> true
})();

API

isReachable(targets, options?)

Returns a Promise<boolean> which is true if any of the targets are reachable.

targets

Type: string | string[]

One or more targets to check. Can either be hostname:port, a URL like https://hostname:port or even just hostname. port must be specified if protocol is not http: or https: and defaults to 443. Protocols other than http: and https: are not supported.

options

Type: object

timeout

Type: number
Default: 5000

Timeout in milliseconds after which a request is considered failed.

Node.js only

Related

  • is-online - Check if the internet connection is up

Maintainers

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].