title: Getting output of child process created with inherit
body: <p>I am spawning a child process in node where for the opts I'm using <code>{stdio:'inherit'}</code>, I need to do this because the child process needs to accept some input from the user.</p>
  
  <p>I need to also get this output though, because the output of the child is actually nothing because it is using the parent's. I thought about doing a quick <code>process.stdout.on('data', ...)</code> attach and detach after the child process, but I prefer not to do that. I assume that is some node stream solution? Like something that would get intercept the input first, and then pass it along to my parent process? </p>
  
  <p>TLDR Need output of child process while still doing <code>stdio:'inherit'</code> in node. Perhaps something that pipes output of child process to a Buffer/string?</p>
  
  <p>Thank you and please if answering provide working code example </p>