Skip to content
Myr

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 file

Take it

TweaksSindre Sorhusbefore adoption698a1b8

lines 1–8why, one step back
1#!/usr/bin/env node
2import 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;