UNPKG

atomically

Version:

Read and write files atomically and reliably.

12 lines (11 loc) 432 B
import type { Disposer } from '../types.js'; declare const Temp: { store: Record<string, boolean>; create: (filePath: string) => string; get: (filePath: string, creator: (filePath: string) => string, purge?: boolean) => [string, Disposer]; purge: (filePath: string) => void; purgeSync: (filePath: string) => void; purgeSyncAll: () => void; truncate: (filePath: string) => string; }; export default Temp;