Answer prompt questions for easier scripting and test automation.
npm install answer-prompt --save
Create a child process any way you which and pass it into answerPrompt. This will return a function that can be called to to answer questions.
var spawn = spawn;var answerPrompt = ;var child = ;var answer = ; // 'stderr' also accepted;;
tester can be either a Function, a RegExp (probably most useful) or a String. answerPrompt will listen to stdout (default) or stderr and when a test passes write the response to stdin.
BSD 2 Clause