Skip to main content
Module

x/dax/src/deps.ts>localDataDir

Cross platform shell tools for Deno inspired by zx.
Extremely Popular
Go to Latest
function localDataDir
import { localDataDir } from "https://deno.land/x/dax@0.33.0/src/deps.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