Skip to main content

MakeTempOptions

interface Deno.MakeTempOptions

Properties Jump to heading

optional
Jump to headingdir: 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
Jump to headingprefix: string

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

optional
Jump to headingsuffix: string

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

Back to top