{"library":"cache-or-tmp-directory","type":"library","category":null,"description":"Returns the system cache directory for a given app name, or falls back to a predictable temporary directory. Version 1.0.0 is stable with no known release cadence. Alternatives like 'cache-directory' require optional dependencies (e.g., osx-tmpdir) and may fail entirely; this package always returns a writable path. It does not create the directory, only provides the path. The temp fallback is non-random, allowing cache sharing across processes. Lightweight, no dependencies, supports Node.js only.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","cache","directory","temporary","caching"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cache-or-tmp-directory","imports":["import cacheOrTmpDir from 'cache-or-tmp-directory'","const cacheOrTmpDir = require('cache-or-tmp-directory')","import cacheOrTmpDir from 'cache-or-tmp-directory'"]},{"cmd":"yarn add cache-or-tmp-directory","imports":[]},{"cmd":"pnpm add cache-or-tmp-directory","imports":[]}],"homepage":"https://github.com/strugee/node-cache-or-tmp-directory#readme","github":"https://github.com/strugee/node-cache-or-tmp-directory","docs":null,"changelog":null,"pypi":null,"npm":"cache-or-tmp-directory","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}