UNPKG

universal-fs

Version:

Allows a client or server to access the file system in the current codebase or a different one.

9 lines (8 loc) 246 B
export interface ReadFileParams { path: PathLike; options?: ({ encoding?: null | undefined | BufferEncoding; flag?: OpenMode | undefined; } & Abortable) | null; } export type ReadFileReturn = Promise<string | Buffer>;