runtime/node.ts

Node.js implementation of RuntimeDeps.

Provides the same interface as deno.ts but backed by Node.js APIs. Used for running servers in Node.js and for tests (vitest runs in Node).

Declarations
#

view source

create_node_runtime
#

runtime/node.ts view source

(args?: readonly string[]): RuntimeDeps

Create a RuntimeDeps backed by Node.js APIs.

args

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

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

returns

RuntimeDeps

RuntimeDeps implementation using Node.js runtime