{"library":"global-cache-dir","type":"library","category":null,"description":"Get the global cache directory (OS-specific) and ensure it exists. Current version 6.0.1, with a stable release cadence via npm. Key differentiators: returns a normalized path using the OS-standard cache location (macOS: ~/Library/Caches, Linux: ~/.cache, Windows: AppData\\Local\\Cache), auto-creates the directory if missing, and is fully typed with TypeScript definitions. ESM-only, requires Node.js >=18.18.0. Simpler than alternatives like node-cachedir by providing a one-function API with directory creation.","language":"javascript","status":"active","version":"6.0.1","tags":["javascript","cache","caching","directory","filesystem","operating-system","global","performance","files","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install global-cache-dir","imports":["import globalCacheDir from 'global-cache-dir'","import globalCacheDir from 'global-cache-dir'","import globalCacheDir from 'global-cache-dir'"]},{"cmd":"yarn add global-cache-dir","imports":[]},{"cmd":"pnpm add global-cache-dir","imports":[]}],"homepage":"https://www.github.com/ehmicky/global-cache-dir","github":"https://github.com/ehmicky/global-cache-dir","docs":null,"changelog":null,"pypi":null,"npm":"global-cache-dir","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}