write-file-stdout (npm): Write to a file, falling back to stdout.
Keywords: write|file|stdout