Skip to content

@loontail/minecraft-kit v0.5.0 / Spawner

Interface: Spawner

Pluggable process spawner. The default implementation uses node:child_process; tests inject a fake to avoid spawning real processes.

Methods

spawn()

ts
spawn(
   command, 
   args, 
   options): SpawnedProcess

Parameters

ParameterType
commandstring
argsreadonly string[]
optionsSpawnOptions

Returns

SpawnedProcess

Source

src/types/spawner.ts:31

MIT License