Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/io/util.ts>tempFile

A modern runtime for JavaScript and TypeScript.
Go to Latest
function tempFile
import { tempFile } from "https://deno.land/x/deno@v0.28.0/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; }>