spawn-wait-for

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i spawn-wait-for

Weekly Downloads

5

Version

1.1.0

License

ISC

Last publish

Collaborators

  • leahcimic