Bun

interface

child_process.SpawnSyncOptions

interface SpawnSyncOptions

  • argv0?: string
  • cwd?: string | URL
  • encoding?: null | BufferEncoding | 'buffer'
  • env?: ProcessEnv
  • gid?: number
  • input?: string | ArrayBufferView<ArrayBufferLike>
  • killSignal?: number | Signals

    The signal value to be used when the spawned process will be killed by the abort signal.

  • maxBuffer?: number
  • serialization?: SerializationType

    Specify the kind of serialization used for sending messages between processes.

  • shell?: string | boolean
  • stdio?: StdioOptions

    Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. If passed as an array, the first element is used for stdin, the second for stdout, and the third for stderr. A fourth element can be used to specify the stdio behavior beyond the standard streams. See ChildProcess.stdio for more information.

  • timeout?: number
  • uid?: number
  • windowsHide?: boolean