node-closure icon indicating copy to clipboard operation
node-closure copied to clipboard

Use streams.

Open jdalton opened this issue 10 years ago • 0 comments

Snippets like this:

compiler.stdout.on('data', function(data) {
  return stdout += data;
});
compiler.stderr.on('data', function(data) {
  return stderr += data;
});

could be written to leverage streams. My streams-fu is weak, the shame, but I've seen @cowboy mention it once or twice.

jdalton avatar Mar 31 '14 21:03 jdalton