spawn-wait-for
v1.1.0
Published
Spawn and wait for the process to output a line that matches a regex.
Downloads
75
Maintainers
Readme
spawn-wait-for
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
};
});