# @kodbruket/wait-for

> Simple CLI app to wait for a url to load.

Latest version **1.0.0** (published 2019-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kodbruket/wait-for
pnpm add @kodbruket/wait-for
yarn add @kodbruket/wait-for
bun add @kodbruket/wait-for
```

Provides the command `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.0 |
| Published | 2019-04-09 |
| First published | 2019-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 23.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | benjick |

## Links

- npm: https://www.npmjs.com/package/@kodbruket/wait-for
- npm.io page: https://npm.io/package/@kodbruket/wait-for

## Dependencies (2)

- [caporal](https://npm.io/package/caporal.md) ^1.1.0
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.0.2

## Recent versions

- 1.0.0 (latest) — 2019-04-09

## README

# wait-for

Simple CLI app to wait for a url to load.

## Installation
`npm install -g @kodbruket/wait-for`

## Usage

Wait for http://google.se to be reachable

`wait-for url http://google.se`

You can also wait for a string to be available before moving on, in this case we wait for the string `google` to be present in the response

`wait-for url http://google.se --find google`

By default we wait 2500ms and try 100 times before failing. You can override this with `--max-retries` and `--timeout`:

`wait-for url http://google.se --max-retries 10 --timeout 1000`

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