method GcsProvider.prototype.getStream
GcsProvider.prototype.getStream(path: string): Promise<ReadableStream<Uint8Array> | null>

Native stream download — adapts GCS createReadStream() (Node Readable) into a web ReadableStream via async iteration (no node: import needed).

Parameters

path: string

Object key

Return Type

Promise<ReadableStream<Uint8Array> | null>

A ReadableStream, or null if absent

Usage

import { GcsProvider } from "storage-plugin/src/index.ts";