Buffer the stdin and reverse it using concat-stream module before writing it to stdout.