(path)
| 40 | const toLF = (text) => text.replace(/\r\n/g, '\n'); |
| 41 | |
| 42 | async function exists(path) { |
| 43 | try { |
| 44 | await access(path); |
| 45 | return true; |
| 46 | } catch { |
| 47 | return false; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | function assertInsideRepo(path) { |
| 52 | const resolvedPath = resolve(path); |
no outgoing calls
no test coverage detected