Open gustavnikolaj opened 9 years ago
It would work if jshell is a writable stream.
I think this looks cleaner and reads better:
var jsHell = jshell();
someGiantLogFileStream.pipe(jsHell.stdin);
jsHell.pipe('grep', 'foo');
jsHell.pipe('grep', 'bar');
But it's shouldn't make a difference.
I agree, but I think it should be like this:
someGiantLogFileStream.pipe(jshell('grep', 'foo').pipe('grep', 'bar')).log();
Like: