Skip to main content

execUtils

Index

Enumerations

EndStrategy

EndStrategy:

Always

Always: 2

ErrorCode

ErrorCode: 1

Never

Never: 0

Classes

ExecError

ExecError:

constructor

code

code: number

publicoptionaloriginalError

originalError?: Error

publicreportCode

reportCode: MessageName

publicoptionalreportExtra

reportExtra?: (report: Report) => void

Type declaration

stderr

stderr: string | Buffer

stdout

stdout: string | Buffer

PipeError

PipeError:

constructor

code

code: number

publicoptionaloriginalError

originalError?: Error

publicreportCode

reportCode: MessageName

publicoptionalreportExtra

reportExtra?: (report: Report) => void

Type declaration

Type Aliases

ExecErrorOptions

ExecErrorOptions: PipeErrorOptions & { stderr: Buffer | string; stdout: Buffer | string }

ExecvpOptions

ExecvpOptions: { cwd: PortablePath; encoding?: BufferEncodingOrBuffer; env?: {}; strict?: boolean }

Type declaration

PipeErrorOptions

PipeErrorOptions: { code: number | null; fileName: string; signal: NodeJS.Signals | null }

Type declaration

  • code: number | null
  • fileName: string
  • signal: NodeJS.Signals | null

PipevpOptions

PipevpOptions: { cwd: PortablePath; end?: EndStrategy; env?: {}; stderr: Writable; stdin: Readable | null; stdout: Writable; strict?: boolean }

Type declaration

  • cwd: PortablePath
  • optionalend?: EndStrategy
  • optionalenv?: {}
    • [key string]: string | undefined
  • stderr: Writable
  • stdin: Readable | null
  • stdout: Writable
  • optionalstrict?: boolean

Functions

execvp

  • execvp(fileName: string, args: string[], opts: ExecvpOptions & { encoding: buffer }): Promise<{ code: number; stderr: Buffer; stdout: Buffer }>
  • execvp(fileName: string, args: string[], opts: ExecvpOptions & { encoding: string }): Promise<{ code: number; stderr: string; stdout: string }>
  • execvp(fileName: string, args: string[], opts: ExecvpOptions): Promise<{ code: number; stderr: string; stdout: string }>
  • Parameters

    • fileName: string
    • args: string[]
    • opts: ExecvpOptions & { encoding: buffer }

    Returns Promise<{ code: number; stderr: Buffer; stdout: Buffer }>

pipevp

  • pipevp(fileName: string, args: string[], __namedParameters: PipevpOptions): Promise<{ code: number }>
  • Parameters

    Returns Promise<{ code: number }>