# spawn-wait-for

> Spawn and wait for the process to output a line that matches a regex.

Latest version **1.1.0** (published 2015-09-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install spawn-wait-for
pnpm add spawn-wait-for
yarn add spawn-wait-for
bun add spawn-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.1.0 |
| Published | 2015-09-20 |
| First published | 2015-09-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Leaney |
| Maintainers | leahcimic |
| Keywords | spawn, exec, child_process, wait, regex |

## Links

- npm: https://www.npmjs.com/package/spawn-wait-for
- Repository: https://github.com/leahciMic/spawn-wait-for
- Homepage: https://github.com/leahciMic/spawn-wait-for#readme
- Issues: https://github.com/leahciMic/spawn-wait-for/issues
- npm.io page: https://npm.io/package/spawn-wait-for

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [split](https://npm.io/package/split.md) ^1.0.0
- [ezspawn](https://npm.io/package/ezspawn.md) ^1.1.0
- [bluebird](https://npm.io/package/bluebird.md) ^2.10.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-09-20
- 1.0.9 — 2015-09-18
- 1.0.8 — 2015-09-14
- 1.0.7 — 2015-09-14
- 1.0.6 — 2015-09-14
- 1.0.5 — 2015-09-14
- 1.0.4 — 2015-09-14
- 1.0.3 — 2015-09-14
- 1.0.2 — 2015-09-14
- 1.0.1 — 2015-09-14
- 1.0.0 — 2015-09-14

## README

# spawn-wait-for [![Build Status](https://travis-ci.org/leahciMic/spawn-wait-for.svg?branch=master)](https://travis-ci.org/leahciMic/spawn-wait-for)

Spawn and wait for the process to output a line that matches a regex.

## Install

```sh
npm install --save spawn-wait-for
```

## Usage

```js
var spawnWaitFor = require('spawn-wait-for');

spawnWaitFor('fakeServer', /server is running/).then(function(obj) {
  obj = {
    process: Object, // a child process object,
    matches: Array, // the regex sub matches
    line: String // the line that matched
  };
});
```

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