( filepath: string | URL, )
| 286 | } |
| 287 | |
| 288 | function parseFileSync( |
| 289 | filepath: string | URL, |
| 290 | ): Record<string, string> { |
| 291 | try { |
| 292 | return parse(Deno.readTextFileSync(filepath)); |
| 293 | } catch (e) { |
| 294 | if (e instanceof Deno.errors.NotFound) return {}; |
| 295 | throw e; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | async function parseFile( |
| 300 | filepath: string | URL, |