{"_id":"npm-cache-filename","_rev":"94577","name":"npm-cache-filename","description":"Given a cache folder and url, return the appropriate cache folder.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"time":{"modified":"2021-06-03T10:31:30.000Z","created":"2014-05-14T01:14:42.525Z","1.0.2":"2015-06-29T21:21:18.877Z","1.0.1":"2014-05-14T05:56:55.384Z","1.0.0":"2014-05-14T01:14:42.525Z"},"users":{},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"repository":{"type":"git","url":"git://github.com/npm/npm-cache-filename.git"},"versions":{"1.0.2":{"name":"npm-cache-filename","version":"1.0.2","description":"Given a cache folder and url, return the appropriate cache folder.","main":"index.js","dependencies":{},"devDependencies":{"tap":"^1.2.0"},"scripts":{"test":"tap test.js"},"repository":{"type":"git","url":"git://github.com/npm/npm-cache-filename.git"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/npm/npm-cache-filename/issues"},"homepage":"https://github.com/npm/npm-cache-filename","gitHead":"b7eef12919fdf544a3b83bba73093f7268c40c1e","_id":"npm-cache-filename@1.0.2","_shasum":"ded306c5b0bfc870a9e9faf823bc5f283e05ae11","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.2.2","_npmUser":{"name":"zkat","email":"kat@sykosomatic.org"},"dist":{"shasum":"ded306c5b0bfc870a9e9faf823bc5f283e05ae11","size":1735,"noattachment":false,"key":"/npm-cache-filename/-/npm-cache-filename-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-cache-filename/download/npm-cache-filename-1.0.2.tgz"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"directories":{},"publish_time":1435612878877,"_cnpm_publish_time":1435612878877,"_hasShrinkwrap":false},"1.0.1":{"name":"npm-cache-filename","version":"1.0.1","description":"Given a cache folder and url, return the appropriate cache folder.","main":"index.js","dependencies":{},"devDependencies":{"tap":"^0.4.10"},"scripts":{"test":"tap test.js"},"repository":{"type":"git","url":"git://github.com/npm/npm-cache-filename"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/npm/npm-cache-filename/issues"},"homepage":"https://github.com/npm/npm-cache-filename","_id":"npm-cache-filename@1.0.1","_shasum":"9b640f0c1a5ba1145659685372a9ff71f70c4323","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"dist":{"shasum":"9b640f0c1a5ba1145659685372a9ff71f70c4323","size":1658,"noattachment":false,"key":"/npm-cache-filename/-/npm-cache-filename-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-cache-filename/download/npm-cache-filename-1.0.1.tgz"},"directories":{},"publish_time":1400047015384,"_cnpm_publish_time":1400047015384,"_hasShrinkwrap":false},"1.0.0":{"name":"npm-cache-filename","version":"1.0.0","description":"Given a cache folder and url, return the appropriate cache folder.","main":"index.js","dependencies":{},"devDependencies":{"tap":"^0.4.10"},"scripts":{"test":"tap test.js"},"repository":{"type":"git","url":"git://github.com/npm/npm-cache-filename"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","bugs":{"url":"https://github.com/npm/npm-cache-filename/issues"},"homepage":"https://github.com/npm/npm-cache-filename","_id":"npm-cache-filename@1.0.0","_shasum":"3eff71737d4308ef1cf876ceaafc51fa1e65485b","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"fritzy","email":"fritzy@netflint.net"},{"name":"gar","email":""},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"nlf","email":""},{"name":"npm-cli-ops","email":""},{"name":"saquibkhan","email":""}],"dist":{"shasum":"3eff71737d4308ef1cf876ceaafc51fa1e65485b","size":1539,"noattachment":false,"key":"/npm-cache-filename/-/npm-cache-filename-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-cache-filename/download/npm-cache-filename-1.0.0.tgz"},"directories":{},"publish_time":1400030082525,"_cnpm_publish_time":1400030082525,"_hasShrinkwrap":false}},"readme":"# npm-cache-filename\n\nGiven a cache folder and url, return the appropriate cache folder.\n\n## USAGE\n\n```javascript\nvar cf = require('npm-cache-filename');\nconsole.log(cf('/tmp/cache', 'https://registry.npmjs.org:1234/foo/bar'));\n// outputs: /tmp/cache/registry.npmjs.org_1234/foo/bar\n```\n\nAs a bonus, you can also bind it to a specific root path:\n\n```javascript\nvar cf = require('npm-cache-filename');\nvar getFile = cf('/tmp/cache');\n\nconsole.log(getFile('https://registry.npmjs.org:1234/foo/bar'));\n// outputs: /tmp/cache/registry.npmjs.org_1234/foo/bar\n```\n","_attachments":{},"homepage":"https://github.com/npm/npm-cache-filename","bugs":{"url":"https://github.com/npm/npm-cache-filename/issues"},"license":"ISC"}