MCPcopy Create free account
hub / github.com/sindresorhus/execa / getScriptStdinOption

Function getScriptStdinOption

lib/methods/script.js:16–18  ·  view source on GitHub ↗
({input, inputFile, stdio})

Source from the content-addressed store, hash-verified

14const getScriptOptions = options => ({options: {...getScriptStdinOption(options), ...options}});
15
16const getScriptStdinOption = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined
17 ? {stdin: 'inherit'}
18 : {};
19
20// When using $(...).pipe(...), most script-friendly options should apply to both commands.
21// However, some options (like `stdin: 'inherit'`) would create issues with piping, i.e. cannot be deep.

Callers 1

getScriptOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected