Select the types of activity you want to include in your feed.
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}