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