title: NodeJS spawn stdout string format
body: <p>I'm spawning a process in node and tracking the output of the command like this:</p>
  
  <pre><code>proc.stdout.on("data", function (data) {
      console.log(data.toString());
  });
  </code></pre>
  
  <p>It works well, however, the output seems to be splitting the lines:</p>
  
  <pre><code>npm http
   304 https://registry.npmjs.org/underscore
  </code></pre>
  
  <p>The above is just one line out of the response from an <code>npm install</code>. Typically this is all in one line, it's also adding line breaks before and after the response. Is there a way to get the data output to look like the standard run, i.e. line-by-line?</p>