npm-cache-path

JSON →
library 2.0.0 ·javascript
verified Jun 7, 2026

Resolves the npm cache folder path asynchronously, first checking the npm_config_cache environment variable, then falling back to running `npm config get cache`. Version 2.0.0 returns a Promise. Minimal dependencies: requires Node.js 8 or later. Less opinionated than alternatives that only check environment variables or config files independently.