Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dir/tmp_dir/mod.ts>default

Returns the user and platform specific directories
Latest
function default
import { default } from "https://deno.land/x/dir@1.5.2/tmp_dir/mod.ts";

Returns the path to the user's home directory.

The returned value depends on the operating system and is either a string, containing a value from the following table, or null.

Platform Value Example
Linux TMPDIR /tmp
macOS TMPDIR /var/folders/xx/xxxxxx/T/
Windows {TMP} C:\Users\justjavac\AppData\Local\Temp

Returns

string | null