node-closure
node-closure copied to clipboard
Use streams.
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.