()
| 23 | } |
| 24 | |
| 25 | async load() { |
| 26 | try { |
| 27 | let data = await fs.promises.readFile(this.filename, 'utf8'); |
| 28 | data = Utils.jsonParseWithBuffer(data); |
| 29 | return data as any; // TODO provide a proper type |
| 30 | } catch { |
| 31 | Utils.die('Invalid input file'); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | exists() { |
| 36 | return fs.existsSync(this.filename); |
nothing calls this directly
no test coverage detected