stream-when
Create a Promise that will resolve when a Stream's data
event passes a condition.
Install
npm install stream-when --save
Use
Function
Pass a callback function that will checked on each data event.
var child = ;childstdout;var promise = ; promise;
RegExp
Pass a Regular Expression that will be used to test.
var child = ;childstdout;var promise = ; promise;
String
Pass a string value which will be converted into a RegExp.
var child = ;childstdout;var promise = ; promise;
License
BSD 2 Clause