fs-nextra
Version:
Node.js fs next-gen extra (nextra) methods.
17 lines (16 loc) • 659 B
TypeScript
/**
* Creates an empty file, making all folders required to satisfy the given file path.
* @function ensureFile
* @memberof fsn/nextra
* @param file Path of the file you want to create
* @param atomic Whether the operation should run atomically
*/
/**
* Creates an empty file, making all folders required to satisfy the given file path.
* @function createFile
* @memberof fsn/nextra
* @param file Path of the file you want to create
* @param atomic Whether the operation should run atomically
*/
export declare function createFile(file: string, atomic?: boolean): Promise<void>;
export declare const ensureFile: typeof createFile;