(filePath)
| 43 | } |
| 44 | |
| 45 | function readTextIfExists(filePath) { |
| 46 | if (!fs.existsSync(filePath)) return ''; |
| 47 | return fs.readFileSync(filePath, 'utf8'); |
| 48 | } |
| 49 | |
| 50 | function readJsonIfExists(filePath, options = {}) { |
| 51 | if (!fs.existsSync(filePath)) return null; |
no outgoing calls
no test coverage detected