{"name":"npm-cache-filename","version":"1.0.0","author":{"url":"http://blog.izs.me/","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"npm-cache-filename@1.0.0","maintainers":[{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/npm/npm-cache-filename","bugs":{"url":"https://github.com/npm/npm-cache-filename/issues"},"dist":{"shasum":"3eff71737d4308ef1cf876ceaafc51fa1e65485b","tarball":"http://registry-npm.ywwl.com/npm-cache-filename/download/npm-cache-filename-1.0.0.tgz","integrity":"sha512-YV0jeVYxBueHgTUCQQS1DOKrlwiUohZvZ+0xjYVcw6q1c64LSZMMvqAe+4pKIJ/rVzOUH1MZiHjJXI4KFgYMHw==","signatures":[{"sig":"MEYCIQDWp0baMd3eTgQrF85pATwSpRmzNma9atLv8JWF6VpSsgIhAJwiS/DLgp/5Fh8kzxMUFAcbrK7qrlNDvkqJls/Gls2l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1539,"noattachment":false,"key":"/npm-cache-filename/-/npm-cache-filename-1.0.0.tgz"},"main":"index.js","_from":".","_shasum":"3eff71737d4308ef1cf876ceaafc51fa1e65485b","scripts":{"test":"tap test.js"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"deprecated":"This package is no longer supported.","repository":{"url":"git://github.com/npm/npm-cache-filename","type":"git"},"_npmVersion":"1.4.10","description":"Given a cache folder and url, return the appropriate cache folder.","directories":{},"dependencies":{},"devDependencies":{"tap":"^0.4.10"},"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","publish_time":1400030082525,"_cnpm_publish_time":1400030082525,"dist-tags":{"latest":"1.0.2"}}