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