Skip to content

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

Notifications You must be signed in to change notification settings

leahciMic/spawn-wait-for

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published