nested-pipe-stream.js
This file
Path
test/fixtures/nested-pipe-stream.js
12 lines · 374 bytes · JavaScript
Last changed by
Refactor test helpers for the `verbose` option (#1128)ehmickybefore adoption18d320f
History of this fileTake it
12345678910111213#!/usr/bin/env nodeimport process from 'node:process';import {execa, getOneMessage} from '../../index.js';
const {file, commandArguments, options: {unpipe, ...options}} = await getOneMessage();const subprocess = execa(file, commandArguments, options);subprocess.stdout.pipe(process.stdout);if (unpipe) { subprocess.stdout.unpipe(process.stdout);}
await subprocess;