Skip to content
Myr

nested-multiple-stdin.js

This file

Path

test/fixtures/nested-multiple-stdin.js

10 lines · 459 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 1–10why, one step back
1#!/usr/bin/env node
2import process from 'node:process';3import {execa, execaSync} from '../../index.js';4import {foobarString} from '../helpers/input.js';5import {parseStdioOption} from '../helpers/stdio.js';67const [stdioOption, isSyncString] = process.argv.slice(2);8const stdin = parseStdioOption(stdioOption);9const execaMethod = isSyncString === 'true' ? execaSync : execa;10await execaMethod('stdin.js', {input: foobarString, stdin, stdout: 'inherit'});