function createBunRuntimeServices
createBunRuntimeServices(
host?: BunHost,
workers?: IWorkerHost,
dns?: IDnsResolver
): IRuntimeServices

Creates IRuntimeServices backed by Bun APIs.

Parameters

optional
host: BunHost

Injected Bun host (defaults to buildBunHost, which is backed by node: built-ins — NOT by members of the Bun global)

optional
workers: IWorkerHost

Injected worker host (defaults to the web Worker host)

optional
dns: IDnsResolver

Injected DNS resolver (defaults to the shared node:dns/promises resolver, which Bun implements)

Return Type

IRuntimeServices

Complete runtime services for Bun

Usage

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