Piping Output From a Child Process to the Parent Process in Node You can pipe the output of a child process by setting the stdio property to "inherit" for any child process in node. const child_process = require("child_process"); child_process.execSync("ls -a", { stdio: "inherit" });