(p: string)
| 182 | } |
| 183 | |
| 184 | export async function loadIndex(p: string): Promise<Index | null> { |
| 185 | try { return JSON.parse(await fs.readFile(p, 'utf-8')); } catch { return null; } |
| 186 | } |
| 187 | |
| 188 | export async function saveIndex(p: string, idx: Index): Promise<void> { |
| 189 | await fs.mkdir(path.dirname(p), { recursive: true }); |
no outgoing calls
no test coverage detected