UNPKG

nodejs-file-utils

Version:

File Read and Write Apis with Cached content in NodeJs

6 lines (5 loc) 309 B
declare type JSONType = Record<string, unknown>; export declare const readJsonFileStore: (path: string, force?: boolean) => Promise<JSONType>; export declare const updateJsonFileStore: (path: string, json: JSONType) => void; export declare const saveJsonFileStore: (path: string) => Promise<void>; export {};