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
TweaksSindre Sorhusbefore adoption698a1b8
lines 1–8why, one step back1#!/usr/bin/env node2import process from 'node:process';3import {execa, getOneMessage} from '../../index.js';45const {file, commandArguments, options} = await getOneMessage();6const subprocess = execa(file, commandArguments, {...options, all: true});7subprocess.all.pipe(process.stdout);8await subprocess;