UNPKG

memfs

Version:

In-memory file-system with Node's fs API.

13 lines (12 loc) 677 B
import { Buffer } from '../vendor/node/internal/buffer'; import { TDataOut, TEncodingExtended } from '../encoding'; export declare const isWin: boolean; type TData = TDataOut | ArrayBufferView | DataView; export declare const unixify: (filepath: string, stripTrailing?: boolean) => string; type TResolve = (filename: string, base?: string) => string; declare let resolve: TResolve; export { resolve }; export declare const filenameToSteps: (filename: string, base?: string) => string[]; export declare function isFd(path: any): boolean; export declare function validateFd(fd: any): void; export declare function dataToBuffer(data: TData, encoding?: TEncodingExtended): Buffer;