(filename: string)
| 9 | import path from 'node:path'; |
| 10 | |
| 11 | export async function getTempFilePath(filename: string) { |
| 12 | const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'chrome-devtools-mcp-')); |
| 13 | |
| 14 | const filepath = path.join(dir, filename); |
| 15 | return filepath; |
| 16 | } |
| 17 | |
| 18 | export function ensureExtension( |
| 19 | filepath: string, |
no test coverage detected
searching dependent graphs…