Options
All
  • Public
  • Public/Protected
  • All
Menu

Module process

Index

References

DevNullStream

Re-exports DevNullStream

DevNullStream

Re-exports DevNullStream

ForkOptions

Re-exports ForkOptions

IProcessExitEvent

Re-exports IProcessExitEvent

IProcessStartEvent

Re-exports IProcessStartEvent

MultiRingBuffer

Re-exports MultiRingBuffer

MultiRingBufferOptions

Re-exports MultiRingBufferOptions

MultiRingBufferReadableStream

Re-exports MultiRingBufferReadableStream

Process

Re-exports Process

ProcessErrorEvent

Re-exports ProcessErrorEvent

ProcessManager

Re-exports ProcessManager

ProcessOptions

Re-exports ProcessOptions

ProcessType

Re-exports ProcessType

RawForkOptions

Re-exports RawForkOptions

RawProcess

Re-exports RawProcess

RawProcessFactory

Re-exports RawProcessFactory

RawProcessOptions

Re-exports RawProcessOptions

TaskTerminalProcess

Re-exports TaskTerminalProcess

TaskTerminalProcessFactory

Re-exports TaskTerminalProcessFactory

TerminalProcess

Re-exports TerminalProcess

TerminalProcessFactory

Re-exports TerminalProcessFactory

TerminalProcessOptions

Re-exports TerminalProcessOptions

WrappedPosition

Re-exports WrappedPosition

Properties

default

default: ContainerModule

default

default: ContainerModule

Variables

Const BashQuotingFunctions

BashQuotingFunctions: Required<ShellQuotingFunctions> = ...

Const CmdQuotingFunctions

CmdQuotingFunctions: Required<ShellQuotingFunctions> = ...

Const MultiRingBufferOptions

MultiRingBufferOptions: typeof MultiRingBufferOptions = ...

Const PowershellQuotingFunctions

PowershellQuotingFunctions: Required<ShellQuotingFunctions> = ...

Const RawProcessFactory

RawProcessFactory: typeof RawProcessFactory = ...

Const RawProcessOptions

RawProcessOptions: typeof RawProcessOptions = ...

Const TaskTerminalProcessFactory

TaskTerminalProcessFactory: typeof TaskTerminalProcessFactory = ...

Const TerminalProcessFactory

TerminalProcessFactory: typeof TerminalProcessFactory = ...

Const TerminalProcessOptions

TerminalProcessOptions: typeof TerminalProcessOptions = ...

Functions

codename

  • codename(code: number): string

createProcessTestContainer

  • createProcessTestContainer(): Container

createShellCommandLine

  • Converts a list of args into an escaped shell command.

    There are two main use cases when handling command/arguments for a shell:

    1. User already wrote the escaped commandline, then just use that.
    2. User wants a specific process to be invoked with some arguments.

    The createShellCommandLine function is useful for the latter.

    Parameters

    • args: (string | ShellQuotedString)[]

      Standard list of spawn/exec arguments, first item is the command.

    • Optional quotingFunctions: ShellQuotingFunctions

      Collection of functions to process arguments.

    Returns string

escapeForShell

export=

  • export=(...args: string[]): string[]

parseArgs

  • parseArgs(line: string | undefined): string[]
  • Parses the given line into an array of args respecting escapes and string literals.

    Parameters

    • line: string | undefined

      the given line to parse

    Returns string[]

signame

  • signame(sig: number): string
  • Convert a signal number to its short name (using the signal definitions of the current host). Should never be called on Windows. For Linux, this is only valid for the x86 and ARM architectures, since other architectures may use different numbers, see signal(7).

    Parameters

    • sig: number

    Returns string