spawn-wait-for
1.1.0 • Public • Published 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,
matches: Array,
line: String
};
});
Package Sidebar
Install
Weekly Downloads