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
Allow `stdin`/`stdout`/`stderr` to be an array (#643)ehmickybefore adoption7efd50c
lines 1–7why, one step back1#!/usr/bin/env node2import process from 'node:process';3import {execa} from '../../index.js';45const [options] = process.argv.slice(2);6const result = await execa('noop.js', ['foobar'], {stdout: JSON.parse(options)});7process.stderr.write(`nested ${result.stdout}`);