# is-all-reachable

> Check if a list of hosts servers are all recheable.

Latest version **1.1.3** (published 2017-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-all-reachable
pnpm add is-all-reachable
yarn add is-all-reachable
bun add is-all-reachable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2017-07-28 |
| First published | 2016-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kiko Beats |
| Maintainers | kikobeats |
| Keywords | accessible, all, browser, connected, connectivity, detect, has, host, hosts, internet, is, network, offline, online, reachability, reachable, server, socket |

## Links

- npm: https://www.npmjs.com/package/is-all-reachable
- Repository: https://github.com/kikobeats/is-all-reachable
- Homepage: https://github.com/Kikobeats/is-all-reachable
- Issues: https://github.com/Kikobeats/is-all-reachable/issues
- npm.io page: https://npm.io/package/is-all-reachable

## Dependencies (3)

- [async](https://npm.io/package/async.md) ~2.5.0
- [nodeify](https://npm.io/package/nodeify.md) ~1.0.1
- [is-reachable](https://npm.io/package/is-reachable.md) ~2.3.3

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2017-07-28
- 1.1.2 — 2017-07-18
- 1.1.1 — 2017-07-18
- 1.1.0 — 2017-07-18
- 1.0.0 — 2016-08-17

## README

# is-all-reachable

![Last version](https://img.shields.io/github/tag/Kikobeats/is-all-reachable.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Kikobeats/is-all-reachable/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/is-all-reachable)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/is-all-reachable.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/is-all-reachable)
[![Dependency status](https://img.shields.io/david/Kikobeats/is-all-reachable.svg?style=flat-square)](https://david-dm.org/Kikobeats/is-all-reachable)
[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/is-all-reachable.svg?style=flat-square)](https://david-dm.org/Kikobeats/is-all-reachable#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/is-all-reachable.svg?style=flat-square)](https://www.npmjs.org/package/is-all-reachable)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Kikobeats)

> Check if a list of hosts servers are all recheable.

## Install

```bash
$ npm install is-all-reachable --save
```

## Usage

```js
const isAllReachable = require('is-all-reachable')

isAllReachable([
  'http://google.com',
  'http://google.es'
], (err, reachable) => {
  console.log(reachable); //=> true
});

isReachable([
  'http://aposddasd.com',
  'http://google.com'
], (err, reachable, host) => {
  console.log(reachable); //=> false
  console.log(host); //=> 'http://aposddasd.com'

});
```

## API

### isAllReachable(hosts, callback)

#### hosts

*Required*
Type: `array`

A list of [hosts](https://nodejs.org/api/url.html) to check.

#### callback(error, reachable, host)

Type: `function`

`error` is there only by Node.js convention and is always `null`.

##### reachable

Type: `boolean`

Is `true` if *all* of the `hosts` are reachable.

##### host

Type: `string`

First unrecheable `host` found.

## License

MIT © [Kiko Beats](https://github.com/Kikobeats).

---
_Source: https://npm.io/package/is-all-reachable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
