Skip to content

NodeExecAdapter

Defined in: src/adapters/node/exec.ts:39

Adapter interface for process execution

Abstracts process spawning across Node.js, Deno, and Bun.

Implements

Constructors

Constructor

new NodeExecAdapter(): NodeExecAdapter

Returns

NodeExecAdapter

Methods

getCapabilities()

getCapabilities(): Capabilities

Defined in: src/adapters/node/exec.ts:40

Get the capabilities of this runtime

Returns

Capabilities

Implementation of

ExecAdapter.getCapabilities


spawn()

spawn(options, handlers?): Promise<SpawnResult>

Defined in: src/adapters/node/exec.ts:51

Spawn a process and wait for completion

Parameters

options

SpawnOptions

Spawn options

handlers?

StreamHandler

Optional stream handlers for real-time output

Returns

Promise<SpawnResult>

Promise resolving to spawn result

Implementation of

ExecAdapter.spawn


spawnStreaming()

spawnStreaming(options): SpawnHandle

Defined in: src/adapters/node/exec.ts:118

Spawn a process with streaming support

Parameters

options

SpawnOptions

Spawn options

Returns

SpawnHandle

Handle to the spawned process

Implementation of

ExecAdapter.spawnStreaming