Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pickit/deps.ts>cacheDir

Extract files from tarballs and github repos using glob syntax or regular expressions.
Latest
function cacheDir
import { cacheDir } from "https://deno.land/x/pickit@v0.0.4/deps.ts";

Returns the path to the user's cache 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_CACHE_HOME or $HOME/.cache /home/justjavac/.cache
macOS $HOME/Library/Caches /Users/justjavac/Library/Caches
Windows $LOCALAPPDATA C:\Users\justjavac\AppData\Local

Returns

string | null