this repo has no description
at main 10 lines 195 B view raw
1import * as fs from "node:fs/promises"; 2 3export async function fileExists(filePath: string): Promise<boolean> { 4 try { 5 await fs.access(filePath); 6 return true; 7 } catch { 8 return false; 9 } 10}