# wait-listen

> wait for server to listen

Latest version **0.1.4** (published 2023-07-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install wait-listen
pnpm add wait-listen
yarn add wait-listen
bun add wait-listen
```

Provides the commands `wl`, `wait-listen`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-07-18 |
| First published | 2023-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | sasa+1 |
| Maintainers | sasaplus1 |

## Links

- npm: https://www.npmjs.com/package/wait-listen
- Repository: https://github.com/sasaplus1/wait-listen.js
- Homepage: https://github.com/sasaplus1/wait-listen.js#readme
- Issues: https://github.com/sasaplus1/wait-listen.js/issues
- npm.io page: https://npm.io/package/wait-listen

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.3.4
- [commander](https://npm.io/package/commander.md) ^11.0.0

## Recent versions

- 0.1.4 (latest) — 2023-07-18
- 0.1.3 — 2023-06-16
- 0.1.2 — 2023-05-02
- 0.1.1 — 2023-03-13
- 0.1.0 — 2023-03-12

## README

# wait-listen.js

wait for server to listen

## Installation

```
$ npm install wait-listen
```

## Usage

```
$ wait-listen --help
Usage: wait-listen [options]

wait for server to listen

Options:
  -c, --command <command>  execute command (default: "")
  -d, --debug              show command's stdout and stderr (default: false)
  -i, --interval <ms>      request interval (default: 500)
  -s, --status <code>      target status code (default: 200)
  -t, --timeout <ms>       timeout (default: 180000)
  -v, --version            output the version number
  -h, --help               display help for command

Example:
  $ wait-listen http://localhost:8080 && echo ready
  $ wait-listen http://localhost:8080 -c 'node server.js'
  $ wait-listen http://localhost:8080 -s 418
```

## License

The MIT license

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