{"_id":"find-cache-dir","_rev":"288352","name":"find-cache-dir","description":"Finds the common standard cache directory","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-10-06T06:18:55.000Z","created":"2015-12-30T05:27:14.863Z","5.0.0":"2023-08-18T23:47:06.336Z","4.0.0":"2022-11-04T10:42:15.400Z","3.3.2":"2021-08-29T17:57:35.086Z","3.3.1":"2020-03-09T06:19:11.460Z","3.3.0":"2020-02-22T15:12:34.144Z","3.2.0":"2019-12-12T12:16:48.624Z","3.1.0":"2019-11-09T05:36:15.030Z","3.0.0":"2019-04-09T17:28:45.788Z","2.1.0":"2019-03-12T06:28:05.014Z","2.0.0":"2018-06-18T13:58:20.824Z","1.0.0":"2017-05-12T14:28:50.644Z","0.1.1":"2015-12-30T06:15:34.620Z","0.1.0":"2015-12-30T05:27:14.863Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-cache-dir.git"},"versions":{"5.0.0":{"name":"find-cache-dir","version":"5.0.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-cache-dir.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["cache","directory","caching","find","search"],"dependencies":{"common-path-prefix":"^3.0.0","pkg-dir":"^7.0.0"},"devDependencies":{"ava":"^5.3.1","del":"^7.0.0","tempy":"^3.1.0","tsd":"^0.28.1","xo":"^0.56.0"},"ava":{"workerThreads":false},"types":"./index.d.ts","gitHead":"795889c6c9218561dadcd9d0e5bd5bf40ccac40b","bugs":{"url":"https://github.com/sindresorhus/find-cache-dir/issues"},"homepage":"https://github.com/sindresorhus/find-cache-dir#readme","_id":"find-cache-dir@5.0.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"69d1a9b77bbe39aea078dbede99d277a170d3079","size":2930,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-5.0.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_5.0.0_1692402426136_0.2907327210810686"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-18T23:47:06.336Z","publish_time":1692402426336,"_source_registry_name":"default","_cnpm_publish_time":1692402426336},"4.0.0":{"name":"find-cache-dir","version":"4.0.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-cache-dir.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"common-path-prefix":"^3.0.0","pkg-dir":"^7.0.0"},"devDependencies":{"ava":"^5.0.1","del":"^7.0.0","tempy":"^3.0.0","xo":"^0.52.4"},"ava":{"workerThreads":false},"gitHead":"e49c1279264426a67cd0534e17d6cd344146b63e","bugs":{"url":"https://github.com/sindresorhus/find-cache-dir/issues"},"homepage":"https://github.com/sindresorhus/find-cache-dir#readme","_id":"find-cache-dir@4.0.0","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"shasum":"a30ee0448f81a3990708f6453633c733e2f6eec2","size":2864,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_4.0.0_1667558535178_0.15634400720738184"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-04T10:56:50.083Z","publish_time":1667558535400,"_cnpm_publish_time":1667558535400},"3.3.2":{"name":"find-cache-dir","version":"3.3.2","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"funding":"https://github.com/avajs/find-cache-dir?sponsor=1","engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^3.0.2","pkg-dir":"^4.1.0"},"devDependencies":{"ava":"^2.4.0","coveralls":"^3.0.9","del":"^4.0.0","nyc":"^15.0.0","tempy":"^0.4.0","xo":"^0.25.3"},"nyc":{"reporter":["lcov","text"]},"gitHead":"21ae9442c2188b5c6f2a22219af779a2476e77a0","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@3.3.2","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"b30c5b6eff0730731aea9bbd9dbecbd80256d64b","size":3135,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-3.3.2.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-3.3.2.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_3.3.2_1630259854961_0.4328790910041689"},"_hasShrinkwrap":false,"publish_time":1630259855086,"_cnpm_publish_time":1630259855086,"_cnpmcore_publish_time":"2021-12-13T12:45:42.199Z"},"3.3.1":{"name":"find-cache-dir","version":"3.3.1","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"funding":"https://github.com/avajs/find-cache-dir?sponsor=1","engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^3.0.2","pkg-dir":"^4.1.0"},"devDependencies":{"ava":"^2.4.0","coveralls":"^3.0.9","del":"^4.0.0","nyc":"^15.0.0","tempy":"^0.4.0","xo":"^0.25.3"},"nyc":{"reporter":["lcov","text"]},"gitHead":"c35ae06d3ac6158d37bc8b559d54295fce40e667","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@3.3.1","_nodeVersion":"10.18.1","_npmVersion":"6.14.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"89b33fad4a4670daa94f855f7fbe31d6d84fe880","size":3173,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-3.3.1.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-3.3.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_3.3.1_1583734751316_0.09030633739517424"},"_hasShrinkwrap":false,"publish_time":1583734751460,"_cnpm_publish_time":1583734751460},"3.3.0":{"name":"find-cache-dir","version":"3.3.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"funding":"https://github.com/avajs/find-cache-dir?sponsor=1","engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^3.0.2","pkg-dir":"^4.1.0"},"devDependencies":{"ava":"^2.4.0","coveralls":"^3.0.9","del":"^4.0.0","nyc":"^15.0.0","tempy":"^0.4.0","xo":"^0.25.3"},"nyc":{"reporter":["lcov","text"]},"gitHead":"e30f2cfa7a319aa839cef3dc790eed343825a0bb","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@3.3.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4d74ed1fe9ef1731467ca24378e8f8f5c8b6ed11","size":3110,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-3.3.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-3.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_3.3.0_1582384354048_0.9904638519597573"},"_hasShrinkwrap":false,"publish_time":1582384354144,"_cnpm_publish_time":1582384354144},"3.2.0":{"name":"find-cache-dir","version":"3.2.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"funding":"https://github.com/avajs/find-cache-dir?sponsor=1","engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^3.0.0","pkg-dir":"^4.1.0"},"devDependencies":{"ava":"^2.4.0","coveralls":"^3.0.9","del":"^4.0.0","nyc":"^14.1.1","xo":"^0.25.3"},"nyc":{"reporter":["lcov","text"]},"gitHead":"c432cb44d605a22f01c9768d5ca97c5d49ae2156","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@3.2.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e7fe44c1abc1299f516146e563108fd1006c1874","size":2943,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-3.2.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_3.2.0_1576153008480_0.5647400107765705"},"_hasShrinkwrap":false,"publish_time":1576153008624,"_cnpm_publish_time":1576153008624},"3.1.0":{"name":"find-cache-dir","version":"3.1.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^3.0.0","pkg-dir":"^4.1.0"},"devDependencies":{"ava":"^1.3.1","coveralls":"^3.0.3","del":"^4.0.0","nyc":"^13.3.0","xo":"^0.24.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"60f1e8374c069351a1ff15d37d74854eab21cf73","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@3.1.0","_nodeVersion":"10.17.0","_npmVersion":"6.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9935894999debef4cf9f677fdf646d002c4cdecb","size":2858,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_3.1.0_1573277774910_0.1801550984401341"},"_hasShrinkwrap":false,"publish_time":1573277775030,"_cnpm_publish_time":1573277775030},"3.0.0":{"name":"find-cache-dir","version":"3.0.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^3.0.0","pkg-dir":"^4.1.0"},"devDependencies":{"ava":"^1.3.1","coveralls":"^3.0.3","del":"^4.0.0","nyc":"^13.3.0","xo":"^0.24.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"f6ecb85f6137107a048083afde1f064033c10a50","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@3.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cd4b7dd97b7185b7e17dbfe2d6e4115ee3eeb8fc","size":2822,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_3.0.0_1554830925622_0.7540186916905429"},"_hasShrinkwrap":false,"publish_time":1554830925788,"_cnpm_publish_time":1554830925788},"2.1.0":{"name":"find-cache-dir","version":"2.1.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"engines":{"node":">=6"},"scripts":{"test":"xo && nyc ava"},"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^2.0.0","pkg-dir":"^3.0.0"},"devDependencies":{"ava":"^1.3.1","coveralls":"^3.0.3","del":"^4.0.0","nyc":"^13.3.0","xo":"^0.24.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"bfcdbd855fdc860e037e6739eb1cccedbed4b893","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8d0f94cd13fe43c6c7c261a0d86115ca918c05f7","size":2517,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_2.1.0_1552372084825_0.3493846624865411"},"_hasShrinkwrap":false,"publish_time":1552372085014,"_cnpm_publish_time":1552372085014},"2.0.0":{"name":"find-cache-dir","version":"2.0.0","description":"Finds the common standard cache directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"engines":{"node":">=6"},"scripts":{"test":"xo && nyc ava"},"files":["index.js"],"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^1.0.0","pkg-dir":"^3.0.0"},"devDependencies":{"ava":"^0.25.0","coveralls":"^3.0.1","del":"^3.0.0","nyc":"^12.0.2","xo":"^0.21.1"},"nyc":{"reporter":["lcov","text"]},"gitHead":"b50ee756ba4a40b084521619b50a764cb823ad43","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4c1faed59f45184530fb9d7fa123a4d04a98472d","size":2534,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-cache-dir_2.0.0_1529330300742_0.22473544916525712"},"_hasShrinkwrap":false,"publish_time":1529330300824,"_cnpm_publish_time":1529330300824},"1.0.0":{"name":"find-cache-dir","version":"1.0.0","description":"My well-made module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/avajs/find-cache-dir.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava"},"files":["index.js"],"keywords":["cache","directory","dir","caching","find","search"],"dependencies":{"commondir":"^1.0.1","make-dir":"^1.0.0","pkg-dir":"^2.0.0"},"devDependencies":{"ava":"^0.19.1","coveralls":"^2.11.6","del":"^2.2.2","nyc":"^10.3.2","xo":"^0.18.2"},"nyc":{"reporter":["lcov","text"]},"gitHead":"39c04031f56206e21590e330b483402235ec91b5","bugs":{"url":"https://github.com/avajs/find-cache-dir/issues"},"homepage":"https://github.com/avajs/find-cache-dir#readme","_id":"find-cache-dir@1.0.0","_shasum":"9288e3e9e3cc3748717d39eade17cf71fc30ee6f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9288e3e9e3cc3748717d39eade17cf71fc30ee6f","size":2648,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-cache-dir-1.0.0.tgz_1494599330398_0.9330564721021801"},"directories":{},"publish_time":1494599330644,"_hasShrinkwrap":false,"_cnpm_publish_time":1494599330644},"0.1.1":{"name":"find-cache-dir","version":"0.1.1","description":"My well-made module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/find-cache-dir.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc --reporter=lcov --reporter=text ava"},"files":["index.js"],"keywords":["cache","directory","dir"],"dependencies":{"commondir":"^1.0.1","mkdirp":"^0.5.1","pkg-dir":"^1.0.0"},"devDependencies":{"ava":"^0.8.0","coveralls":"^2.11.6","nyc":"^5.0.1","rimraf":"^2.5.0","xo":"^0.12.1"},"gitHead":"722fff2aa8fbf666d37192917d2e1fb0e1287489","bugs":{"url":"https://github.com/jamestalmage/find-cache-dir/issues"},"homepage":"https://github.com/jamestalmage/find-cache-dir#readme","_id":"find-cache-dir@0.1.1","_shasum":"c8defae57c8a52a8a784f9e31c57c742e993a0b9","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.2.0","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"c8defae57c8a52a8a784f9e31c57c742e993a0b9","size":2594,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-0.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1451456134620,"_cnpm_publish_time":1451456134620,"_hasShrinkwrap":false},"0.1.0":{"name":"find-cache-dir","version":"0.1.0","description":"My well-made module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/find-cache-dir.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc --reporter=lcov --reporter=text ava"},"files":["index.js"],"keywords":[],"dependencies":{"common-dir":"^0.1.4","commondir":"^1.0.1","mkdirp":"^0.5.1","pkg-dir":"^1.0.0"},"devDependencies":{"ava":"^0.8.0","coveralls":"^2.11.6","nyc":"^5.0.1","rimraf":"^2.5.0","xo":"^0.12.1"},"gitHead":"4f6179091b3562c68869a4228992b5e0791f4a17","bugs":{"url":"https://github.com/jamestalmage/find-cache-dir/issues"},"homepage":"https://github.com/jamestalmage/find-cache-dir#readme","_id":"find-cache-dir@0.1.0","_shasum":"7103acfca3abb52b02b0d2dc24a5c8611577c2d9","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.2.0","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"7103acfca3abb52b02b0d2dc24a5c8611577c2d9","size":2592,"noattachment":false,"key":"/find-cache-dir/-/find-cache-dir-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/find-cache-dir/download/find-cache-dir-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1451453234863,"_cnpm_publish_time":1451453234863,"_hasShrinkwrap":false}},"readme":"# find-cache-dir\n\n> Finds the common standard cache directory\n\nThe [`nyc`](https://github.com/istanbuljs/nyc) and [`AVA`](https://ava.li) projects decided to standardize on a common directory structure for storing cache information:\n\n```sh\n# nyc\n./node_modules/.cache/nyc\n\n# ava\n./node_modules/.cache/ava\n\n# your-module\n./node_modules/.cache/your-module\n```\n\nThis module makes it easy to correctly locate the cache directory according to this shared spec. If this pattern becomes ubiquitous, clearing the cache for multiple dependencies becomes easy and consistent:\n\n```\nrm -rf ./node_modules/.cache\n```\n\n## Install\n\n```sh\nnpm install find-cache-dir\n```\n\n## Usage\n\n```js\nimport findCacheDirectory from 'find-cache-dir';\n\nfindCacheDirectory({name: 'unicorns'});\n//=> '/user/path/node-modules/.cache/unicorns'\n```\n\n## API\n\n### findCacheDirectory(options?)\n\nFinds the cache directory using the given options.\n\nThe algorithm checks for the `CACHE_DIR` environmental variable and uses it if it is not set to `true`, `false`, `1` or `0`. If one is not found, it tries to find a `package.json` file, searching every parent directory of the `cwd` specified (or implied from other options). It returns a `string` containing the absolute path to the cache directory, or `undefined` if `package.json` was never found or if the `node_modules` directory is unwritable.\n\n#### options\n\nType: `object`\n\n##### name\n\n*Required*\\\nType: `string`\n\nShould be the same as your project name in `package.json`.\n\n##### files\n\nType: `string[]`\n\nAn array of files that will be searched for a common parent directory. This common parent directory will be used in lieu of the `cwd` option below.\n\n##### cwd\n\nType: `string`\\\nDefault `process.cwd()`\n\nThe directory to start searching for a `package.json` from.\n\n##### create\n\nType: `boolean`\\\nDefault `false`\n\nCreate the directory synchronously before returning.\n\n## Tips\n\n- To test modules using `find-cache-dir`, set the `CACHE_DIR` environment variable to temporarily override the directory that is resolved.\n\n## Adopters\n\n- [`ava`](https://avajs.dev)\n- [`nyc`](https://github.com/istanbuljs/nyc)\n- [`storybook`](https://github.com/storybookjs/storybook)\n- [`babel-loader`](https://github.com/babel/babel-loader)\n- [`eslint-loader`](https://github.com/MoOx/eslint-loader)\n- [More…](https://www.npmjs.com/browse/depended/find-cache-dir)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/find-cache-dir#readme","bugs":{"url":"https://github.com/sindresorhus/find-cache-dir/issues"},"license":"MIT"}