find-cache-directory
JSON →Finds the common standard cache directory (e.g., ./node_modules/.cache) across projects. Version 6.0.0 is the latest stable release, with a yearly release cadence. This package is part of a shared spec adopted by AVA, nyc, and others. Unlike generic cache path utilities (like env-paths), it relies on a package.json discovery algorithm and respects the CACHE_DIR environment variable. Ship TypeScript type definitions and requires Node.js >= 20.
Resources
packagefind-cache-directory ↗
API endpoints
full doc /v1/registry/find-cache-directory