{"_id":"credentials-by-uri","_rev":"5-3851a622e419bc8d2a2b29105742c4b7","name":"credentials-by-uri","description":"Gets credentials for URI from npm configs","dist-tags":{"latest":"2.1.0","next":"2.0.0"},"versions":{"1.0.0":{"name":"credentials-by-uri","version":"1.0.0","description":"Gets credentials for URI from npm configs","main":"index.js","typings":"index.d.ts","files":["index.js","index.d.ts"],"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/pnpm/credentials-by-uri.git"},"keywords":["npm","config","credentials"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/credentials-by-uri/issues"},"homepage":"https://github.com/pnpm/credentials-by-uri#readme","dependencies":{"nerf-dart":"^1.0.0"},"devDependencies":{"safe-buffer":"^5.1.1","tape":"^4.8.0"},"gitHead":"346f99452e2fc17c235d892bf3b36bbb90fc8c07","_id":"credentials-by-uri@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-WtoZkGQV2KgEfEqWKPetJ2btv+GxldzOe2vHVqAcyuiYdpIwCX7viL2+P9EaZLLfR+SFAZgPdP1+HZJ7MqRc2A==","shasum":"69b3a1ad59802322dae3adbe1323c7dab98c4869","tarball":"https://registry.npmjs.org/credentials-by-uri/-/credentials-by-uri-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJwlLXHWX/C9jaZ2SPsuxi5OENFgYRAkQaz3znKDZBnwIgLnOzOs2IBKAE7ieGlexjGI6tZwpkaZUct+/5RGGaZUg="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials-by-uri-1.0.0.tgz_1507150386992_0.27221795823425055"},"directories":{}},"2.0.0-0":{"name":"credentials-by-uri","version":"2.0.0-0","description":"Gets credentials for URI from npm configs","main":"index.js","typings":"index.d.ts","engines":{"node":">=10"},"scripts":{"test":"standard && c8 node test"},"repository":{"type":"git","url":"git+https://github.com/pnpm/credentials-by-uri.git"},"keywords":["npm","config","credentials"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/credentials-by-uri/issues"},"homepage":"https://github.com/pnpm/credentials-by-uri#readme","dependencies":{"nerf-dart":"^1.0.0"},"devDependencies":{"c8":"^7.0.1","safe-buffer":"^5.1.1","standard":"^14.3.1","tape":"^4.8.0"},"readme":"# credentials-by-uri\n\n[![npm version](https://img.shields.io/npm/v/credentials-by-uri.svg)](https://www.npmjs.com/package/credentials-by-uri)\n[![Status](https://travis-ci.org/pnpm/credentials-by-uri.svg?branch=master)](https://travis-ci.org/pnpm/credentials-by-uri \"See test builds\")\n\n> Gets credentials for URI from npm configs\n\nTaken from npm: https://github.com/npm/npm/blob/24ec9f2dd4dcd4f25622dff3a502d4e86a025c0d/lib/config/get-credentials-by-uri.js.\n\n## Install\n\n```\npnpm add credentials-by-uri\n```\n\n## Usage\n\n```js\nconst credentialsByUri = require('credentials-by-uri')\n\nconsole.log(credentialsByUri())\n```\n\n## Related\n\n* [registry-auth-token](https://github.com/rexxars/registry-auth-token) - Get the auth token set for an npm registry\n\n## License\n\n[MIT](https://github.com/pnpm/credentials-by-uri/blob/master/LICENSE)\n","readmeFilename":"README.md","gitHead":"7e8d77e037cfb7d365b3d52ca4528d4b544ef7cb","_id":"credentials-by-uri@2.0.0-0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-MJ99yVTiglfqWCoZZkNTLwqMAeatVvKlQPnDMi0xZDd+1XTSVGKJ7fLPsguVlizgKNBa3tKNM5i9A+ni1zZKFQ==","shasum":"1498a57c42a1b700f705ebb976804ffc60b7d9a2","tarball":"https://registry.npmjs.org/credentials-by-uri/-/credentials-by-uri-2.0.0-0.tgz","fileCount":5,"unpackedSize":4647,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNsqECRA9TVsSAnZWagAAcekQAJJtUVefpby6wEkgxSC+\nzVep0yi/zSiCB/vXf6KYw9dmtaFdnDYHeJfO9upjMdkDJLMB8Hz9iUNdpfqU\n2Hd+lLLpk3wXsu+GvMAjiROuiTXGG4DipjrPEWdD6IQsEYJc+qgZUWEUZd6b\nCVLZbpQiJvNyzfuJ1R3UlRO6QaXf5S+9JTph+EL3k3Wqf90VulxrIVKJ3jVi\ncj6AeEwiie0PNsS1X3J5SfVW4Z1iqLCifMFpUbRSHJMSZwXE3JL96wK8GIBD\nHjFUBLaBs1drai0uZAmXCtQvoP+MB5j5FuAtKteZT/pStiCTr02bHb8kEwKY\ncpD40TrG/mabvfr4d0B6curaZl7jmCBsKRn32dPR8tg/O/BkM0KOyC8zFT+E\nGkBGaQjfIqPABNFzCXP+l39FKU6Vo2REVDlRPmbDurmGb3W4lE99omDv3KYc\nAQ4okQYFqr85dM6PSjqrx6vWTE/M2ZL7gQ9Ci2oAi3FvfHe8aY5B7aFoAHjz\nyLxNh+cCnLjBz6mg7IzhcvAog89gMr3UU0FO812JgXw+e7vVoyLAKSTITVmE\nk5n5zVs58lgHsVGKMndLvD+YkAwdoVhEnL/LmQPNFRlCD7+Xe/Ucp847i0cC\nbmgQU+Tb0eI0q+qIwv8uu0QB4el7xb/aPZ2Amv7rAmhirAYkgqIiz/u6AHiw\nuJ0n\r\n=xvLE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfSA1TAvEYCHllg/8WFgnhwOxvbbL4RfLWU1IBIlKhUAiBi+/Lj1ls55M+nPYKsniCrqMeQ82U17mVl+yFAJ1AboQ=="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials-by-uri_2.0.0-0_1580649091806_0.8961690967276901"},"_hasShrinkwrap":false},"2.0.0":{"name":"credentials-by-uri","version":"2.0.0","description":"Gets credentials for URI from npm configs","main":"index.js","typings":"index.d.ts","engines":{"node":">=10"},"scripts":{"test":"standard && c8 node test"},"repository":{"type":"git","url":"git+https://github.com/pnpm/credentials-by-uri.git"},"keywords":["npm","config","credentials"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/credentials-by-uri/issues"},"homepage":"https://github.com/pnpm/credentials-by-uri#readme","dependencies":{"nerf-dart":"^1.0.0"},"devDependencies":{"c8":"^7.0.1","safe-buffer":"^5.1.1","standard":"^14.3.1","tape":"^4.8.0"},"readme":"# credentials-by-uri\n\n[![npm version](https://img.shields.io/npm/v/credentials-by-uri.svg)](https://www.npmjs.com/package/credentials-by-uri)\n[![Status](https://travis-ci.org/pnpm/credentials-by-uri.svg?branch=master)](https://travis-ci.org/pnpm/credentials-by-uri \"See test builds\")\n\n> Gets credentials for URI from npm configs\n\n## Install\n\n```\npnpm add credentials-by-uri\n```\n\n## Usage\n\n```js\nconst credentialsByUri = require('credentials-by-uri')\n\nconst config = {\n  '//registry.com/:_authToken': 'f23jj93f32dsaf==',\n  '//registry.com/:always-auth': 'false'\n}\n\nconsole.log(\n  credentialsByUri(config, 'https://registry.com')\n)\n> { authHeaderValue: 'Bearer f23jj93f32dsaf==', alwaysAuth: false }\n```\n\n## Related\n\n* [registry-auth-token](https://github.com/rexxars/registry-auth-token) - Get the auth token set for an npm registry\n\n## License\n\n[MIT](https://github.com/pnpm/credentials-by-uri/blob/master/LICENSE)\n","readmeFilename":"README.md","gitHead":"708d059772cc6044ce6c0453b74f91a9eebcabad","_id":"credentials-by-uri@2.0.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-HptfRWLKfaeewvzKPybPFsR8TRbLSsu5MvHQLc6FWqvIS1CqFHze+IteKQlpLXzx4KwSteZa0MdsN/jEYESVXA==","shasum":"7c464f24998ccb7106400293280a1b9d97eb8f79","tarball":"https://registry.npmjs.org/credentials-by-uri/-/credentials-by-uri-2.0.0.tgz","fileCount":5,"unpackedSize":4710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNxE1CRA9TVsSAnZWagAAbpkQAJ3OlHV8YSmn73qaZO1O\nx6M7bBNj0KXeFtoWE3xOlGYVKQa34+/04h/yhHMFK+EL5x2E3i/1yDJEiDu5\nNFlSTBBf7TKHrhK9u1O8CMZ+cLv0Ax84ocTZWu6g376LLn0csDCElzAjIYDZ\nv2m4p8F35MLXAZ5VGM9C5adiqmlow/Uni2I4C/rc9qtGyuUfLu6+UohnrXiz\noyBDpF95/o4o0ChtoRMyaoCNsi5CwErFnCdUhZi9UmTqwsUCz96zx4KXHVA2\nvEB3s/JYuphZWsy8g+l3WgrLrQOiUeQrDuwLulp/Tk4WwthSJ7WeaXrbo46r\n799Y7S2J0ZbpFIO9K68xrXUrb8Ky4nAMUHVSrTE7cVnh53owaj7VgvRScWqY\n8XiiFHUqdHOmRp0GWy7IpDTRzVGzp5mUXttMG54JxqcAtUbRvQzr+dsteblo\nTJh3p2V+oEskt1c58nvEUl+BIk0JDnFjBkAV9Q7iIfO+aEH1aGrzjHOsEgZ+\nbx/9AX03qDNAGjjjS0hwEVgQM/2FeFg0mGrBbeVkaK2n0UjrjD5sMG2SNyo6\nXib/TiOdXbygFEHfzn+mNr8gqMs9kMg5j2GS/Z4EAcZfWWTzVuqbk0ue4F5K\nHiSJYfejyp8MPxuDMeZuykKnLpT/YsURuosSW4wYxShI+IeRgo+/2k6VcNAI\nZHj/\r\n=G4Gy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC36hIwOPZegGOlidEwbfNbUmpklqqLd0RdIbmJhuRsQgIgOtQKFBd1nSP2FujJnLqZyivs/I0naSwaYe93/iDBP5A="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials-by-uri_2.0.0_1580667188605_0.9364921041392116"},"_hasShrinkwrap":false},"2.1.0":{"name":"credentials-by-uri","version":"2.1.0","description":"Gets credentials for URI from npm configs","main":"index.js","typings":"index.d.ts","engines":{"node":">=10"},"repository":{"type":"git","url":"git+https://github.com/pnpm/credentials-by-uri.git"},"keywords":["npm","config","credentials"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io","twitter":"ZoltanKochan"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/credentials-by-uri/issues"},"homepage":"https://github.com/pnpm/credentials-by-uri#readme","dependencies":{"@pnpm/error":"^2.0.0","nerf-dart":"^1.0.0"},"devDependencies":{"c8":"^7.0.1","safe-buffer":"^5.1.1","standard":"^14.3.1","tape":"^4.8.0"},"scripts":{"test":"standard && c8 node test"},"_id":"credentials-by-uri@2.1.0","_integrity":"sha512-Ia57VrZYcs4YTPUB4Pirjf3MYsSdc7mAYGC99lUKii0KsohmZgpPvVOeqW1NWBCRg3HVrLOtSreLqkmFIUi8WQ==","_resolved":"/home/zoltan/src/pnpm/credentials-by-uri/credentials-by-uri-2.1.0.tgz","_from":"file:credentials-by-uri-2.1.0.tgz","_nodeVersion":"17.2.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-Ia57VrZYcs4YTPUB4Pirjf3MYsSdc7mAYGC99lUKii0KsohmZgpPvVOeqW1NWBCRg3HVrLOtSreLqkmFIUi8WQ==","shasum":"bfd30b509e4af3af9a255a8cd463cfa664f1806a","tarball":"https://registry.npmjs.org/credentials-by-uri/-/credentials-by-uri-2.1.0.tgz","fileCount":5,"unpackedSize":6721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhx5edCRA9TVsSAnZWagAAvIMP/3Uq9XUgUCYNOhn4inRd\n0mFEeb6LLnrF74LtInX9E374CuO8GXTjZDlngnemogaETbGvWT4qR6VkxljM\nO8Di/K6iqGvAv0wL1fMD0mFy/3Cu9mxxL4qUQfDQ43ItHhBcQWIJ2Mwkx/yh\n9k83orkkdDgk/ZgGVxB8S4ebYthAmwL1knMTINXJ+il0cwRci+cOK08j+4x0\nxlYyLKjDRt1llmmNE5VlHI3/XRjOyNnDlCFDTK9r567x7WgbLn8zD2gQ0qBY\neGSlVsbRF2OcCUJWboTSiuLh6wyjpW9VpChSKMGIMRIMV7gTXH0KafZgLYl7\nRLeqM1fquR3Qvjqvhl8qxMMNofG1RZIQg+us4UOIz8iY4xKTvH3Teydb8D9w\nCTbc8dEwbK9c+l8FkxhOOsev6RIVvuyXki3a3462TwjRixsdWERcZtKdA10l\n3NGOJS6L2N8X45FdDnODwj60Ma16d8xywbcoyPh5X6Rd3UUfBtxT2gHyNhlV\na9a6ZCcukR5n5UFYfuHpAS97+RMMoprsiu8f/ZhJic88z50YkqlQ6OpL+xWF\nJp6lIrWfPDZ2UXsotG+fSQ4um6INriiV9n+J+oj5NIoU6l5oNmIJfyYf7Q/B\n0k7Sij9gxI+eodLmaWUf6aZ0M3cscZguaKsOn1+n4kEQpAVY+o3j2jbcCa6F\nJYkp\r\n=D//U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErgGZM/AQct0xm9PkchEBymkK0/YyoMzPycxhn+3ZQUAiEA+krjy/zsCynwdoBWpcY5try2MehcMXZVTcquzC7D9eQ="}]},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/credentials-by-uri_2.1.0_1640470429100_0.8450518349229035"},"_hasShrinkwrap":false}},"readme":"# credentials-by-uri\n\n[![npm version](https://img.shields.io/npm/v/credentials-by-uri.svg)](https://www.npmjs.com/package/credentials-by-uri)\n[![Status](https://travis-ci.org/pnpm/credentials-by-uri.svg?branch=master)](https://travis-ci.org/pnpm/credentials-by-uri \"See test builds\")\n\n> Gets credentials for URI from npm configs\n\n## Install\n\n```\npnpm add credentials-by-uri\n```\n\n## Usage\n\n```js\nconst credentialsByUri = require('credentials-by-uri')\n\nconst config = {\n  registry: 'https://registry.npmjs.com',\n  '//registry.com/:_authToken': 'f23jj93f32dsaf==',\n  '//registry.com/:always-auth': 'false'\n}\n\nconsole.log(\n  credentialsByUri(config, 'https://registry.com')\n)\n> { authHeaderValue: 'Bearer f23jj93f32dsaf==', alwaysAuth: false }\n```\n\n## Related\n\n* [registry-auth-token](https://github.com/rexxars/registry-auth-token) - Get the auth token set for an npm registry\n\n## License\n\n[MIT](https://github.com/pnpm/credentials-by-uri/blob/master/LICENSE)\n","maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"time":{"modified":"2022-04-27T21:54:53.087Z","created":"2017-10-04T20:53:07.857Z","1.0.0":"2017-10-04T20:53:07.857Z","2.0.0-0":"2020-02-02T13:11:31.928Z","2.0.0":"2020-02-02T18:13:08.792Z","2.1.0":"2021-12-25T22:13:49.239Z"},"homepage":"https://github.com/pnpm/credentials-by-uri#readme","keywords":["npm","config","credentials"],"repository":{"type":"git","url":"git+https://github.com/pnpm/credentials-by-uri.git"},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io","twitter":"ZoltanKochan"},"bugs":{"url":"https://github.com/pnpm/credentials-by-uri/issues"},"license":"MIT","readmeFilename":""}