UNPKG

nodejs-file-utils

Version:

File Read and Write Apis with Cached content in NodeJs

7 lines (6 loc) 452 B
export declare const createTempDir: (prefix: string) => string; export declare const deleteDir: (dir: string) => void; export declare const createFiles: (dir: string, paths: Record<string, string>) => void; export declare const readFiles: (dir: string) => Record<string, string>; export declare const copyDirectory: (source: string, target: string) => Promise<void>; export declare const listFiles: (dir: string, suffix?: string) => Promise<string[]>;