# hiot-wait-for

> Wait for artifact to become available.

Latest version **1.0.1** (published 2020-12-01) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install hiot-wait-for
pnpm add hiot-wait-for
yarn add hiot-wait-for
bun add hiot-wait-for
```

## 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.0.1 |
| Published | 2020-12-01 |
| First published | 2020-12-01 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hiotlabs AB |
| Maintainers | jdeibe |

## Links

- npm: https://www.npmjs.com/package/hiot-wait-for
- Homepage: https://github.com/hiotlabs/readme.md
- npm.io page: https://npm.io/package/hiot-wait-for

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [tcp-connect](https://npm.io/package/tcp-connect.md) 0.0.3
- [promise-retry](https://npm.io/package/promise-retry.md) ^1.1.0

## Recent versions

- 1.0.1 (latest) — 2020-12-01
- 1.0.0 — 2020-12-01
- 0.0.3 — 2020-12-01

## README

# hiot-wait-for

Promised waiting for host and TCP port to become available. It's like the node
version of the [`wait-for-it`](https://github.com/vishnubob/wait-for-it) bash
script — useful for synchronizing the start-up of interdependent services,
such as linked docker containers.

# Install

```bash
npm install hiot-wait-for
```

# Usage

```javascript
var waitfor = require('hiot-wait-for');

return waitfor('api.github.com', 443)
  .then(() => runApp())
  .catch(err => {
    // handle error
  });
```

# Tests

```bash
npm install
npm test
```

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