A simple nodeJS program:  Tee.js   that takes input from stdin, writing output to both stdout and a specified outputFile.