{"name":"npm-cache-filename","version":"1.0.1","author":{"url":"http://blog.izs.me/","name":"Isaac Z. Schlueter","email":"i@izs.me"},"license":"ISC","_id":"npm-cache-filename@1.0.1","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":"9b640f0c1a5ba1145659685372a9ff71f70c4323","tarball":"http://registry-npm.ywwl.com/npm-cache-filename/download/npm-cache-filename-1.0.1.tgz","integrity":"sha512-qhOdjtAhM5pEeFs8SqZZsBf5797gyxsZwOEdhzYMy+xKow5UsHTAWTUfjbcbl0blYh5EGNWfHNLWehLZ2ID7ng==","signatures":[{"sig":"MEUCIB1mqyXWcwJ0NxcBEf+m0ISmHB8YrLv2aqCjK6tcnRcIAiEA3D0DI0dh5G33Wq6fN7oBxi4lZ6bpfMBKQ5OhEae3vLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1658,"noattachment":false,"key":"/npm-cache-filename/-/npm-cache-filename-1.0.1.tgz"},"main":"index.js","_from":".","_shasum":"9b640f0c1a5ba1145659685372a9ff71f70c4323","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":1400047015384,"_cnpm_publish_time":1400047015384,"dist-tags":{"latest":"1.0.2"}}