function createNodeRuntimeServices
createNodeRuntimeServices(
host?: NodeHost,
workers?: IWorkerHost,
dns?: IDnsResolver
): IRuntimeServices

Creates IRuntimeServices backed by Node.js APIs.

Parameters

optional
host: NodeHost

Injected Node host (defaults to real Node.js via static node: imports)

optional
workers: IWorkerHost

Injected worker host (defaults to the node:worker_threads host)

optional
dns: IDnsResolver

Injected DNS resolver (defaults to the node:dns/promises resolver)

Return Type

IRuntimeServices

Complete runtime services for Node.js

Usage

import { createNodeRuntimeServices } from "runtime/src/index.ts";