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