1.1.0 • Published 10 years ago

spawn-wait-for v1.1.0

Weekly downloads
57
License
ISC
Repository
github
Last release
10 years ago

spawn-wait-for Build Status

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

Install

npm install --save spawn-wait-for

Usage

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
  };
});
1.1.0

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago