(filePath)
| 404 | } |
| 405 | |
| 406 | function readNodeIdFile(filePath) { |
| 407 | try { |
| 408 | if (!fs.existsSync(filePath)) return ''; |
| 409 | return fs.readFileSync(filePath, 'utf8').trim(); |
| 410 | } catch (_) { |
| 411 | return ''; |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | function osHomedir() { |
| 416 | try { return require('os').homedir(); } catch (_) { return ''; } |
no outgoing calls
no test coverage detected