(path: string)
| 50 | `${value.replaceAll('\r\n', '\n').trimEnd()}\n`; |
| 51 | |
| 52 | export const pathExists = async (path: string): Promise<boolean> => { |
| 53 | try { |
| 54 | await access(path); |
| 55 | return true; |
| 56 | } catch (error) { |
| 57 | if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false; |
| 58 | throw error; |
| 59 | } |
| 60 | }; |
no outgoing calls
no test coverage detected