runtime/node.ts

Node.js implementation of RuntimeDeps.

Backed by Node.js APIs. Used for running servers on Node and Bun (which implements the node:* surface this module touches) and for tests (vitest runs in Node).

view source

Declarations
#

create_node_runtime
#

runtime/node.ts view source

(args?: readonly string[]): RuntimeDeps import {create_node_runtime} from '@fuzdev/fuz_app/runtime/node.js';

Create a RuntimeDeps backed by Node.js APIs.

args?

CLI arguments (typically process.argv.slice(2))

type readonly string[]
optional default process.argv.slice(2)

returns

RuntimeDeps

RuntimeDeps implementation using Node.js runtime

Depends on
#

Imported by
#