(root: string, rel: string, body: string)
| 44 | let cg: CodeGraph; |
| 45 | |
| 46 | function write(root: string, rel: string, body: string): void { |
| 47 | const full = path.join(root, rel); |
| 48 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 49 | fs.writeFileSync(full, body); |
| 50 | } |
| 51 | |
| 52 | function request(requestPath: string): Promise<{ status: number; body: string; type?: string }> { |
| 53 | return new Promise((resolve, reject) => { |