Write to a file, falling back to stdout.
npm install write-file-stdout
Read to file, falling back to stdout.
$ npm install write-file-stdout
file
MIT