Implements
  • Process

Constructors

Accessors

  • get entry(): (params: ProcessEntryParams) => Promise<undefined | number | void>
  • Get process entry point

    Returns (params: ProcessEntryParams) => Promise<undefined | number | void>

  • get stdinIsTTY(): undefined | boolean
  • Whether stdin is a TTY (interactive terminal) vs a pipe

    Returns undefined | boolean

  • get stdoutIsTTY(): undefined | boolean
  • Whether stdout is a TTY (interactive terminal) vs a file/pipe

    Returns undefined | boolean

Methods

  • Marks the process to stay alive after the entry function returns. Useful for background/daemon processes that need to keep running.

    Returns void

  • Opens a file and automatically tracks it in the FDTable. The file handle will be automatically closed on process cleanup.

    Parameters

    • path: string

      Path to the file

    • flags: string = 'r'

      Open flags (default: 'r')

    Returns Promise<FileHandle>

    The file handle