Use rw module for node to read from stdin.