cache-or-tmp-directory
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 17
actors 4 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇬🇧 United Kingdom · 🇨🇦 Canada
Resources
packagecache-or-tmp-directory ↗
API endpoints
full doc /v1/registry/cache-or-tmp-directory