{"library":"app-cache-dir","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"0.4.0","tags":["javascript","application","app","cache","dir","path","common","standard","inessential"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install app-cache-dir","imports":["const appCacheDir = require('app-cache-dir');","const p = require('app-cache-dir').posix('my-app');","const p = require('app-cache-dir').win32('my-app');"]},{"cmd":"yarn add app-cache-dir","imports":[]},{"cmd":"pnpm add app-cache-dir","imports":[]}],"homepage":"https://github.com/shinnn/app-cache-dir#readme","github":"https://github.com/shinnn/app-cache-dir","docs":null,"changelog":null,"pypi":null,"npm":"app-cache-dir","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}