(url: string)
| 114 | } |
| 115 | |
| 116 | private cacheKey(url: string): string { |
| 117 | return createHash("sha256").update(url).digest("hex").slice(0, 16); |
| 118 | } |
| 119 | |
| 120 | private cacheFile(url: string): string { |
| 121 | return path.join(this.cacheDir, `${this.cacheKey(url)}.txt`); |