Skip to content
PACKAGES

fromProcess()

Emit a process result with the fromProcess source factory.

import { fromProcess } from "@graphrefly/ts";
function fromProcess(
program: string,
args: readonly string[] = [],
): Operator<never, ProcessResult>
ParameterTypeDescription
programstringExecutable name or path.
argsreadonly string[]Command-line arguments.

A source operator that emits one ProcessResult.

fromProcess("git", ["status"]);

packages/ts/src/graph/sources.ts