Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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

Parameters

unnamed 0: { options?: Deno.MakeTempOptions; }

Returns

Evaluates to the full path to the newly created file.