(path: string)
| 37 | * Check if a path exists asynchronously. |
| 38 | */ |
| 39 | export async function pathExists(path: string): Promise<boolean> { |
| 40 | try { |
| 41 | await stat(path) |
| 42 | return true |
| 43 | } catch { |
| 44 | return false |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | export const MAX_OUTPUT_SIZE = 0.25 * 1024 * 1024 // 0.25MB in bytes |
| 49 |
no test coverage detected