UNPKG

@stryke/path

Version:

A package containing various utilities that expand the functionality of NodeJs's built-in `path` module

15 lines (14 loc) 405 B
/** * Check if a file exists * * @param filePath - The file path to check * @returns An indicator specifying if the file exists */ export declare const existsSync: (filePath: string) => boolean; /** * Check if a file exists * * @param filePath - The file path to check * @returns An indicator specifying if the file exists */ export declare const exists: (filePath: string) => Promise<boolean>;