Skip to content
PACKAGES

nodeProcessDriver()

Node.js process EnvironmentDriver for D130/D131 adapters.

Import this from @graphrefly/ts/sources/node and install it with EnvironmentDrivers.empty().withProcess(nodeProcessDriver()). The child process is an adapter-boundary side effect; graph nodes only observe ordinary ProcessResult DATA or ERROR.

import { nodeProcessDriver } from "@graphrefly/ts/sources/node";
function nodeProcessDriver(opts: NodeProcessDriverOptions = {}): LocalProcessDriver
ParameterTypeDescription
optsNodeProcessDriverOptionsOptions that configure the helper.

A LocalProcessDriver value.

import { nodeProcessDriver } from "@graphrefly/ts/sources/node";

packages/ts/src/sources/node.ts