(path: string)
| 17 | } |
| 18 | |
| 19 | public readFile(path: string): string { |
| 20 | const cached = this.fsCache.get(path) |
| 21 | if (cached != null) { |
| 22 | return cached |
| 23 | } |
| 24 | const source = readFileSync(path, 'utf-8') |
| 25 | this.fsCache.set(path, source) |
| 26 | return source |
| 27 | } |
| 28 | |
| 29 | public readBuffer(path: string): Buffer<ArrayBuffer> { |
| 30 | const cached = this.fsBufferCache.get(path) |
no test coverage detected