npm-cache-path
Get the path of npm cache folder
const npmCachePath = ; async { await ; //=> '/Users/shinnn/.npm'};
Installation
npm install npm-cache-path
API
const npmCachePath = ;
npmCachePath()
Return: Promise<string>
It tries to get the path of npm cache folder, first from the environment variables, second from the stdout of npm config get cache
command.
// npm_config_cache=/foo/bar node ./example.js async { await ; //=> '/foo/bar'};
License
ISC License © 2018 Shinnosuke Watanabe