f
spawn(argv: string[]): Promise<SpawnResult>
Runs another tool's installer — deno install, npm install -g — and reports how it went.
I
SpawnResult
How the installer this process ran finished — shaped like the process it describes.
-
exitCode: number | null
The installer's exit code. Null when a signal killed it, or when it never started.
-
isMissingInstallerBinary: boolean
True when the installer is not on PATH at all —
denoon a machine without deno. -
signalCode: NodeJS.Signals | null
The signal that killed it, or null when it exited on its own.
Usage
import * as mod from "lib/commands/upgrade/process.ts";