property BunHost.createReadStream

Create a read stream for a file. Returns null if the file cannot be opened.

Type

(
path: string,
options?: { start?: number; end?: number; }
) => NodeJS.ReadableStream | null

Usage

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