(error: unknown)
| 15 | } |
| 16 | |
| 17 | function errorCode(error: unknown) { |
| 18 | return error && typeof error === 'object' && 'code' in error |
| 19 | ? String(error.code) |
| 20 | : undefined; |
| 21 | } |
| 22 | |
| 23 | function createRequireFrom(fromDirectory: string) { |
| 24 | return Module.createRequire(path.join(fromDirectory, 'package.json')); |
no outgoing calls
no test coverage detected