We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e430c7e commit 35853c3Copy full SHA for 35853c3
src/temp-file.ts
@@ -20,7 +20,7 @@ import { v4 } from 'uuid';
20
import { promises } from 'fs';
21
22
export async function writeTempFile(content: string): Promise<string> {
23
- const path: string = join(tmpdir(), v4(), '');
+ const path: string = join(tmpdir(), v4());
24
await promises.mkdir(dirname(path), { recursive: true });
25
await promises.writeFile(path, content, 'utf-8');
26
0 commit comments