Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var read = function() { return rw.readSync('/dev/stdin', 'utf8').trim(); }
Now stdin and stdout are files.