Skip to main content
The Deno 2 Release Candidate is here
Learn more
function makeTempFile
import { makeTempFile } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

Creates a new temporary file in the default directory for temporary files, unless dir is specified. Other optional options include prefixing and suffixing the file name with prefix and suffix respectively.

It is the caller's responsibility to remove the file when no longer needed.

See https://deno.land/api@v1.40.3?unstable=true&s=Deno.makeTempFile

Returns

Promise<string>

The full path to the newly created file.