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

x/deno/cli/js/make_temp_dir.ts

A modern runtime for JavaScript and TypeScript.
Go to Latest
import * as deno from "https://deno.land/x/deno@v0.28.0/cli/js/make_temp_dir.ts";

Functions

makeTempDir creates a new temporary directory in the directory dir, its name beginning with prefix and ending with suffix. It returns the full path to the newly created directory. If dir is unspecified, tempDir uses the default directory for temporary files. Multiple programs calling tempDir simultaneously will not choose the same directory. It is the caller's responsibility to remove the directory when no longer needed.

makeTempDirSync is the synchronous version of makeTempDir.