Files
2025-06-03 14:12:12 +02:00

12 lines
238 B
JavaScript

const execa = require('execa');
(async () => {
const first = execa('node', ['empty.js']);
const second = execa('node', ['stdin.js']);
first.stdout.pipe(second.stdin);
const {stdout} = await second;
console.log(stdout);
})();