Skip to main content
Module

std/io/util.ts>tempFile

Deno standard library
Go to Latest
function tempFile
import { tempFile } from "https://deno.land/std@0.50.0/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; }>