API Reference
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
import { nodeProcessDriver } from "@graphrefly/ts/sources/node";
Signature
function nodeProcessDriver(opts: NodeProcessDriverOptions = {}): LocalProcessDriver
Parameters
| Parameter | Type | Description |
|---|---|---|
opts | NodeProcessDriverOptions | Options that configure the helper. |
Returns
A LocalProcessDriver value.
Example
import { nodeProcessDriver } from "@graphrefly/ts/sources/node";
Source
packages/ts/src/sources/node.ts