Hi,
We needed way to control phantomjs binary by stdin and stdout for using it as queued rendering engine and noticed that reading from /dev/stdin and /dev/stdout with require('fs').open('/dev/stdin').readLine() didn't work as expected and blocked until end of file mark. Also those device files are not available in all platforms. I added stdin, stdout and stderr file objects as standard members to filesystem object, so its possible to do this:
var stdin = require('fs').stdin();
while( line = stdin.readLine() ) {
}
I would like to get this or something similar on the main release, any comments if it's right approach for stdout/stdin or how to improve this?
Thanks, Teemu I.