UNPKG

@llm-tools/embedjs-utils

Version:

Useful util functions when extending the embedjs ecosystem

5 lines (4 loc) 255 B
import { Stream } from 'stream'; export declare function streamToBuffer(stream: Stream): Promise<Buffer>; export declare function streamToString(stream: Stream): Promise<string>; export declare function contentTypeToMimeType(contentType: string): string;