Skip to main content
Module

x/dir/data_local_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/data_local_dir/mod.ts";

Returns the path to the user's local data 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 $XDG_DATA_HOME or $HOME/.local/share /home/justjavac/.local/share
macOS $HOME/Library/Application Support /Users/justjavac/Library/Application Support
Windows $LOCALAPPDATA C:\Users\justjavac\AppData\Local

Returns

string | null