sindresorhus / find-cache-dir

Finds the common standard cache directory
MIT License
151 stars 24 forks source link

Allow for configuring the cache dir #9

Closed deiga closed 6 years ago

deiga commented 6 years ago

It would be great if I could set f.ex. NODE_CACHE_ROOT=/tmp

sindresorhus commented 6 years ago

There are lots of more generic cache modules on npm. This one is specifically made to store it in the current location.

deiga commented 6 years ago

@sindresorhus That answer is kind of unhelpful, since I can't control which of my dependencies use this module. Which in turn means I have no control over where files are stored.