npm-cache-dir

I am checking and creating npm's cache dir

Usage no npm install needed!

<script type="module">
  import npmCacheDir from 'https://cdn.skypack.dev/npm-cache-dir';
</script>

README

Build Status

npm-cache-dir

Get stats about npm's cache dir and create the directory lazily

API

.getCacheStat(npmCache, log, cb)

Get fs.stats about npm's cache dir, and create the cachedir if it does not exist

.makeCacheDir(npmCache, log, cb)

Create the cache dir according to the setting in npm.cache