mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
12 lines
238 B
JavaScript
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);
|
|
})();
|