Dynamic module child_process

Index

Classes

Functions

Functions

exec(command: string, options: { cwd?: string; stdio?: any; customFds?: any; env?: any; encoding?: string; timeout?: number; maxBuffer?: number; killSignal?: string; }, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess

Parameters

  • command: string
  • options: { cwd?: string; stdio?: any; customFds?: any; env?: any; encoding?: string; timeout?: number; maxBuffer?: number; killSignal?: string; }
  • callback: (error: Error, stdout: Buffer, stderr: Buffer) => void

Returns

ChildProcess

exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess

Parameters

  • command: string
  • callback: (error: Error, stdout: Buffer, stderr: Buffer) => void

Returns

ChildProcess

execFile(file: string, args: Array<string>, options: { cwd?: string; stdio?: any; customFds?: any; env?: any; encoding?: string; timeout?: number; maxBuffer?: string; killSignal?: string; }, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess

Parameters

  • file: string
  • args: Array<string>
  • options: { cwd?: string; stdio?: any; customFds?: any; env?: any; encoding?: string; timeout?: number; maxBuffer?: string; killSignal?: string; }
  • callback: (error: Error, stdout: Buffer, stderr: Buffer) => void

Returns

ChildProcess

fork(modulePath: string, args?: Array<string>, options?: { cwd?: string; env?: any; encoding?: string; }): ChildProcess

Parameters

  • modulePath: string
  • args?: Array<string> optional
  • options?: { cwd?: string; env?: any; encoding?: string; } optional

Returns

ChildProcess

spawn(command: string, args?: Array<string>, options?: { cwd?: string; stdio?: any; custom?: any; env?: any; detached?: boolean; }): ChildProcess

Parameters

  • command: string
  • args?: Array<string> optional
  • options?: { cwd?: string; stdio?: any; custom?: any; env?: any; detached?: boolean; } optional

Returns

ChildProcess