import { makeTempDir } from "https://deno.land/x/deno@v0.28.0/cli/js/make_temp_dir.ts";
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.
const tempDirName0 = await Deno.makeTempDir();
const tempDirName1 = await Deno.makeTempDir({ prefix: 'my_temp' });
Parameters
optional
options: MakeTempDirOptions = [UNSUPPORTED]