( filepath: string | URL, )
| 227 | } |
| 228 | |
| 229 | function parseFileSync( |
| 230 | filepath: string | URL, |
| 231 | ): Record<string, string> { |
| 232 | try { |
| 233 | return parse(Deno.readTextFileSync(filepath)); |
| 234 | } catch (e) { |
| 235 | if (e instanceof Deno.errors.NotFound) return {}; |
| 236 | throw e; |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | async function parseFile( |
| 241 | filepath: string | URL, |