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

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.MakeTempOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.MakeTempOptions
import { type Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.ns.d.ts";
const { MakeTempOptions } = Deno;

Properties

optional
dir: string

Directory where the temporary directory should be created (defaults to the env variable TMPDIR, or the system's default, usually /tmp).

Note that if the passed dir is relative, the path returned by makeTempFile() and makeTempDir() will also be relative. Be mindful of this when changing working directory.

optional
prefix: string

String that should precede the random portion of the temporary directory's name.

optional
suffix: string

String that should follow the random portion of the temporary directory's name.