nested-pipe-all-stream.js
This file
Path
test/fixtures/nested-pipe-all-stream.js
8 lines · 305 bytes · JavaScript
Last changed by
TweaksSindre Sorhusbefore adoption698a1b8
History of this fileTake it
123456789#!/usr/bin/env nodeimport process from 'node:process';import {execa, getOneMessage} from '../../index.js';
const {file, commandArguments, options} = await getOneMessage();const subprocess = execa(file, commandArguments, {...options, all: true});subprocess.all.pipe(process.stdout);await subprocess;