Preparing for system design interviews?  Try bugzed.com →

app-cache-dir

JSON →
library 0.4.0 ·javascript maintenance
verified Jun 7, 2026

app-cache-dir v0.4.0 resolves an application name to the standard cache directory path based on OS conventions: XDG_CACHE_HOME on POSIX, LOCALAPPDATA on Windows. Provides cross-platform cache paths (~/.cache/<app> on macOS/Linux, %LOCALAPPDATA%\<app>\cache on Windows). Includes .posix() and .win32() methods to force a specific platform layout. Falls back to os.tmpdir()/<app>/cache when environment variables are missing. Lightweight, no external dependencies, synchronous API. Last updated 2018, in maintenance mode.

total hits 14
actors 4 distinct systems
last hit 12d ago AhrefsBot
GPTBot
3
Amazonbot
3
ByteDance
2
Humans
5

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇮🇹 Italy · PH