Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function tempFile
import { tempFile } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/io/util.ts";

Create or open a temporal file at specified directory with prefix and postfix

Parameters

dir: string
optional
opts: { prefix?: string; postfix?: string; } = [UNSUPPORTED]

Returns

Promise<{ file: File; filepath: string; }>