I'm spawning a process in node and tracking the output of the command like this:
proc.stdout.on("data", function (data) {
console.log(data.toString());
});
It works well, however, the output seems to be splitting the lines:
npm http
304 https://registry.npmjs.org/underscore
The above is just one line out of the response from an npm install
. 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?