Skip to main content
Module

x/denoversion/lib/lib.deno_runtime.d.ts>deno.makeTempDir

Deno cli to manage and bump release versions.
Latest
function deno.makeTempDir
import { deno } from "https://deno.land/x/denoversion@v1.0.2/lib/lib.deno_runtime.d.ts";
const { makeTempDir } = deno;

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.

  import { makeTempDir } from "deno";
  const tempDirName0 = await makeTempDir();
  const tempDirName1 = await makeTempDir({ prefix: 'my_temp' });

Parameters

optional
options: MakeTempDirOptions

Returns

Promise<string>