nested-multiple-stdin.js
This file
Path
test/fixtures/nested-multiple-stdin.js
9 lines · 300 bytes · JavaScript
Last changed by
Allow `stdin`/`stdout`/`stderr` to be an array (#643)ehmickybefore adoption7efd50c
History of this fileTake it
12345678910#!/usr/bin/env nodeimport process from 'node:process';import {execa} from '../../index.js';
const [options] = process.argv.slice(2);const childProcess = execa('stdin.js', {stdin: JSON.parse(options)});childProcess.stdin.write('foobar');const {stdout} = await childProcess;console.log(stdout);