{"_id":"basic-auth","_rev":"1679707","name":"basic-auth","description":"Basic auth parser","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"time":{"modified":"2026-11-05T20:01:08.000Z","created":"2013-11-30T19:20:06.195Z","3.1.0":"2026-11-04T17:55:40.794Z","3.0.0":"2026-08-03T16:18:25.527Z","2.0.1":"2018-09-20T03:26:02.582Z","2.0.0":"2017-09-13T04:11:36.377Z","1.1.0":"2016-11-18T18:57:06.779Z","1.0.4":"2016-05-11T03:54:40.196Z","1.0.3":"2015-07-02T04:45:20.715Z","1.0.2":"2015-06-13T03:51:35.314Z","1.0.1":"2015-05-05T05:54:12.251Z","1.0.0":"2014-07-07T00:19:25.361Z","0.0.1":"2013-11-30T19:20:06.195Z"},"users":{"pdilyard":true,"sanketss84":true,"justintormey":true,"melliw":true,"markthethomas":true,"fabian.moron.zirfas":true,"hckhanh":true,"hyteer":true,"ghkddbguse":true,"sammok2003":true,"garrickajo":true,"j.su":true,"mikermcneil":true,"dburdese":true,"tfentonz":true,"iori20091101":true,"bobjohnson23":true,"langri-sha":true,"tmurngon":true,"3creatives":true,"artmadiar":true,"izzy":true,"serge-nikitin":true,"leonardorb":true,"quafoo":true,"jaguarj":true,"garenyondem":true,"icerainnuaa":true,"tomchao":true,"rocket0191":true,"gavinning":true,"monjer":true,"cooboor":true,"hugojosefson":true,"mucahitnezir":true,"xuu":true,"mobeicaoyuan":true,"im_dodo":true,"rowantaubitz":true,"josudoey":true,"maxblock":true,"drveresh":true},"repository":{"url":"git+https://github.com/jshttp/basic-auth.git","type":"git"},"versions":{"3.1.0":{"_id":"basic-auth@3.1.0","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"dist":{"shasum":"719aaa7d0451a7861e13fc38880b943a0e4c33b5","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-3.1.0.tgz","integrity":"sha512-E87x8DEyyFLN1EeP5p6j8b/g7gynoV+L6G2zLXAoL1CkkXe7HjNU7JIAf4JozCXJgl5SzxREQq/HzSF/MqhPLw==","fileCount":12,"unpackedSize":15896,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/basic-auth@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF9u6yrhM5UgtT0d/qEBtlA/SDQdK5ANnRAMcnO1csOtAiBlZ8u/IdOkhuQRSoj9zK3yGREsU5t9JTrxi+Kc2sznYA=="}],"size":5260,"noattachment":false,"key":"/basic-auth/-/basic-auth-3.1.0.tgz"},"name":"basic-auth","type":"module","engines":{"node":">=22"},"exports":"./dist/index.js","gitHead":"d7375e84e0cafbe46ddde2e07272d2bebba69472","license":"MIT","scripts":{"lint":"ts-scripts lint","size":"size-limit","test":"ts-scripts test && npm run size","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"version":"3.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"887ffc00-b876-4f93-8807-04f14639ad68"},"approver":{"name":"blakeembrey","email":"hello@blakeembrey.com"}},"homepage":"https://github.com/jshttp/basic-auth#readme","keywords":["basic","auth","authorization","basicauth"],"repository":{"url":"git+https://github.com/jshttp/basic-auth.git","type":"git"},"size-limit":[{"path":"dist/index.js","limit":"1 kB"}],"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"12.1.0","description":"Basic auth parser","directories":{},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"_nodeVersion":"27.0.0-alpha.0.0.0","devDependencies":{"vitest":"^5.1.0","size-limit":"^14.3.0","typescript":"^7.0.2","@types/node":"^26.6.6","@vitest/coverage-v8":"^5.1.0","@borderless/ts-scripts":"^0.15.0","@size-limit/preset-small-lib":"^14.3.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/basic-auth_3.1.0_1793814940702_0.8474268689172411"},"_hasShrinkwrap":false,"publish_time":1793814940794,"_cnpm_publish_time":1793814940794},"3.0.0":{"_id":"basic-auth@3.0.0","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"dist":{"shasum":"18665a504dc0cdf22e9f83d51b14dc1d226d4e21","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-3.0.0.tgz","integrity":"sha512-B63UKsSJ2atgiSuCJvzAjpfAdFY6mYT3C0vZFlLV/81Rw2/VCs6Tp29UzkpKETB3qA2cHwuU1LjBnhUQ0WkPKw==","fileCount":9,"unpackedSize":14533,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/basic-auth@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHXvfOq345/IiuEmEgn9SXEEsznv9rAgc2ex3W93NwkQAiEAgGf9PlvlzS9cf8q3cgg71BnXpaYo0PlDlLrxsh5p3aM="}],"size":4960,"noattachment":false,"key":"/basic-auth/-/basic-auth-3.0.0.tgz"},"name":"basic-auth","type":"module","engines":{"node":">=22"},"exports":"./dist/index.js","gitHead":"0ea09f3a01df2e87dabf9975d4ad27f1e7dd4e25","license":"MIT","scripts":{"lint":"ts-scripts lint","size":"size-limit","test":"ts-scripts test && npm run size","bench":"vitest bench","build":"ts-scripts build","specs":"ts-scripts specs","format":"ts-scripts format","prepare":"ts-scripts install && npm run build"},"version":"3.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:887ffc00-b876-4f93-8807-04f14639ad68"},"approver":{"name":"blakeembrey","email":"hello@blakeembrey.com"}},"homepage":"https://github.com/jshttp/basic-auth#readme","keywords":["basic","auth","authorization","basicauth"],"repository":{"url":"git+https://github.com/jshttp/basic-auth.git","type":"git"},"size-limit":[{"path":"dist/index.js","limit":"1 kB"}],"ts-scripts":{"dist":["dist"],"project":["tsconfig.build.json"]},"_npmVersion":"11.18.0","description":"Basic auth parser","directories":{},"maintainers":[{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"},{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"_nodeVersion":"26.6.0","devDependencies":{"vitest":"^4.1.6","size-limit":"^13.0.3","typescript":"^7.0.2","@types/node":"^26.1.0","@vitest/coverage-v8":"^4.1.6","@borderless/ts-scripts":"^0.15.0","@size-limit/preset-small-lib":"^13.0.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/basic-auth_3.0.0_1785773905445_0.8878251833412545"},"_hasShrinkwrap":false,"publish_time":1785773905527,"_cnpm_publish_time":1785773905527},"2.0.1":{"name":"basic-auth","description":"node.js basic auth parser","version":"2.0.1","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"git+https://github.com/jshttp/basic-auth.git"},"dependencies":{"safe-buffer":"5.1.2"},"devDependencies":{"eslint":"5.6.0","eslint-config-standard":"12.0.0","eslint-plugin-import":"2.14.0","eslint-plugin-markdown":"1.0.0-beta.6","eslint-plugin-node":"7.0.1","eslint-plugin-promise":"4.0.1","eslint-plugin-standard":"4.0.0","istanbul":"0.4.5","mocha":"5.2.0"},"engines":{"node":">= 0.8"},"scripts":{"lint":"eslint --plugin markdown --ext js,md .","test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"bde0bac8ba99f5d461a339cb6b8a598a0586d699","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth#readme","_id":"basic-auth@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"integrity":"sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==","shasum":"b998279bf47ce38344b4f3cf916d4679bbf51e3a","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-2.0.1.tgz","fileCount":5,"unpackedSize":8895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboxNLCRA9TVsSAnZWagAABjAP/36HVdFJZd41XWu4V4Lq\nC9iexogRT/eQ3offpCaOg6Z4phYNUhvspCNzpvWDK+PgFHhL+iT1JaseR8L6\ns10FIWUsV8MWf+PhRyaixrHTlYeKtw86EKCDagUQ+3F/WuR0t1l8tJ61oXmX\nt9mGcmdk9lC7gtq29nY/OP5pIR1wgNcFKXvxhdQ5qQNm1xBJM8HlhkrbJcNV\ncCS22k010P7YGny1hBsDd9d60s8N0qRYYv5jZdAEPyvfe7EuAAuhfjkd7OWZ\notO2E5ynAkHit5MekUdV0s+pUciO8doBCT+KzueHQWt5r7RD4+RgxlCMqzG7\nk4b7uZe0hxvnzRJPoTdWZzdrA5VPwAD+0+TKGUNUzqkeSZViYajwxXBF4WHT\necB+0KUhPMI6IIGdeiIYmL7tSa6hwzqxTy4HhFQ3VHZAi+MCcNFMZ/LuOQyX\nMUiAtxzyLMXCYfe0U3Lk/fBdrcBZAYAHreAdYXwksV2PPvoEc28/qomshKDo\nbVfv3pJvaXDHIEiJBR/4g99ploihTkmOxbqF5ogDBXoim+ql24zuEgHJD3v/\nKPmXTGCyeS6Jrk7hL2bw8mmy0uVb6/LYpKOvcWtTwkIW32DxQMM7zK0y1wq+\n9tSN539Byca0qpbDdh1hgGjwtfaciNb3fGNLGF3QuLYbvrOd4K+cE67vJdbI\nZMlO\r\n=cB++\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs0LgOVgPqNf4i73zrZuL2NTyib+AeJujMIlcYHhtDOwIhAOTUNt5VzjNLZf2I/Q8AzLCwBFrp6TRRto4IN5ChEmp7"}],"size":3744,"noattachment":false,"key":"/basic-auth/-/basic-auth-2.0.1.tgz"},"maintainers":[{"email":"doug@somethingdoug.com","name":"dougwilson"},{"email":"jonathanrichardong@gmail.com","name":"jonathanong"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"tj@vision-media.ca","name":"tjholowaychuk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/basic-auth_2.0.1_1537413962464_0.07525772488456206"},"_hasShrinkwrap":false,"publish_time":1537413962582,"_cnpm_publish_time":1537413962582},"2.0.0":{"name":"basic-auth","description":"node.js basic auth parser","version":"2.0.0","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"git+https://github.com/jshttp/basic-auth.git"},"dependencies":{"safe-buffer":"5.1.1"},"devDependencies":{"eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-markdown":"1.0.0-beta.6","eslint-plugin-node":"5.1.1","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"2.5.3"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.8"},"scripts":{"lint":"eslint --plugin markdown --ext js,md .","test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"704457317b54809b750274cc794d05d43cbb190c","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth#readme","_id":"basic-auth@2.0.0","_shasum":"015db3f353e02e56377755f962742e8981e7bbba","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"015db3f353e02e56377755f962742e8981e7bbba","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-2.0.0.tgz","integrity":"sha512-BNzMKPNNIV3+C02TSO9oILCAPS/htf/upL+TRV2gOnPwSQbFKuL249fwVozDNbSq/AeyoRoVeQgJcK4sN77aHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC7PXPsmq2YjeS9X+URyBkd+zmutyoCGL/BP2/9bd7TrAiEA4g0lfN1etNnACtsDWSnjsRuZWLELwiNR18og/9O8SqI="}],"size":3586,"noattachment":false,"key":"/basic-auth/-/basic-auth-2.0.0.tgz"},"maintainers":[{"email":"tj@vision-media.ca","name":"tjholowaychuk"},{"email":"jonathanrichardong@gmail.com","name":"jonathanong"},{"email":"doug@somethingdoug.com","name":"dougwilson"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/basic-auth-2.0.0.tgz_1505275895449_0.5881294559221715"},"directories":{},"publish_time":1505275896377,"_cnpm_publish_time":1505275896377},"1.1.0":{"name":"basic-auth","description":"node.js basic auth parser","version":"1.1.0","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"https://github.com/jshttp/basic-auth"},"devDependencies":{"eslint":"3.10.2","eslint-config-standard":"6.2.1","eslint-plugin-markdown":"1.0.0-beta.3","eslint-plugin-promise":"3.4.0","eslint-plugin-standard":"2.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint --plugin markdown --ext js,md .","test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"5a0fcd9f4dbf72e2a105d4e815987d3492925875","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth","_id":"basic-auth@1.1.0","_shasum":"45221ee429f7ee1e5035be3f51533f1cdfd29884","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dist":{"shasum":"45221ee429f7ee1e5035be3f51533f1cdfd29884","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-1.1.0.tgz","integrity":"sha512-CtGuTyWf3ig+sgRyC7uP6DM3N+5ur/p8L+FPfsd+BbIfIs74TFfCajZTHnCw6K5dqM0bZEbRIqRy1fAdiUJhTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBqpj7F7VHcXMCk3JEI59f6jKm9TwZvGvbPFA3bNCRGAiBTQWy2rmyfYn8MT23oMSp6wsU0Q1VfXnHXa/pzBo9fow=="}],"size":3471,"noattachment":false,"key":"/basic-auth/-/basic-auth-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/basic-auth-1.1.0.tgz_1479495426183_0.6680189804174006"},"directories":{},"publish_time":1479495426779,"_cnpm_publish_time":1479495426779},"1.0.4":{"name":"basic-auth","description":"node.js basic auth parser","version":"1.0.4","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"git+https://github.com/jshttp/basic-auth.git"},"devDependencies":{"istanbul":"0.4.3","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"4682d99600383bad5a266efbaa5055657dd9891d","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth#readme","_id":"basic-auth@1.0.4","_shasum":"030935b01de7c9b94a824b29f3fccb750d3a5290","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"030935b01de7c9b94a824b29f3fccb750d3a5290","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-1.0.4.tgz","integrity":"sha512-uvq3I/zC5TmG0WZJDzsXzIytU9GiiSq23Gl27Dq9sV81JTfPfQhtdADECP1DJZeJoZPuYU0Y81hWC5y/dOR+Yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGdkAfKSc6rVA70anePok8actqEi9WuVRFFz/NawD1GAIhANkzvG52yzBd1X8T2sTnwdJ6bhHQF7BoLxJ/+cd13uX7"}],"size":3000,"noattachment":false,"key":"/basic-auth/-/basic-auth-1.0.4.tgz"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/basic-auth-1.0.4.tgz_1462938878912_0.717464140150696"},"directories":{},"publish_time":1462938880196,"_cnpm_publish_time":1462938880196},"1.0.3":{"name":"basic-auth","description":"node.js basic auth parser","version":"1.0.3","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"https://github.com/jshttp/basic-auth"},"devDependencies":{"istanbul":"0.3.17","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"eec1944e5a54c907676822096d40bc7c52c0aff3","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth","_id":"basic-auth@1.0.3","_shasum":"41f55523e589405038ee3567958c62a5ed70551a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"41f55523e589405038ee3567958c62a5ed70551a","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-1.0.3.tgz","integrity":"sha512-fkXSqXkCTgBy5HVNQ2wP1Fnc/JZjnREwM3hfU8h5RyUN8X9WMQBJem6ZmlsSs7Y4f3fQ7z09vcARgOa0iaPaZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEF4H0UtbIt5QsUsZCvsuAJT9SN+9MQUA9e3YTzcPL1dAiBUAEUaiWkTTNADL5LUXpbIN/aXO0lQG+DRRXIn/EcXqw=="}],"size":2904,"noattachment":false,"key":"/basic-auth/-/basic-auth-1.0.3.tgz"},"directories":{},"publish_time":1435812320715,"_cnpm_publish_time":1435812320715},"1.0.2":{"name":"basic-auth","description":"node.js basic auth parser","version":"1.0.2","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"https://github.com/jshttp/basic-auth"},"devDependencies":{"istanbul":"0.3.15","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"5e2d7ef5bad393e17ed0035f4926846137559260","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth","_id":"basic-auth@1.0.2","_shasum":"42900137fb0c91462d14b3739c14bf2bb624171d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"42900137fb0c91462d14b3739c14bf2bb624171d","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-1.0.2.tgz","integrity":"sha512-ahPRRXSB01g52OXyC4IRlp4qoHhGIG0PRF/HtcnQ7nbXvEgCC0h/Kdujlr0fxUDQEpLCAlM7P9IZSYbfOjTSKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1FR8sMnl9KcJw93/elR59BmBaymixD62xC/kn5wAeMwIhAOq5C4Pu1/ZmkuemVci7tgGJfLeXP5m42yUWi/5NkqAJ"}],"size":2876,"noattachment":false,"key":"/basic-auth/-/basic-auth-1.0.2.tgz"},"directories":{},"publish_time":1434167495314,"_cnpm_publish_time":1434167495314},"1.0.1":{"name":"basic-auth","description":"node.js basic auth parser","version":"1.0.1","license":"MIT","keywords":["basic","auth","authorization","basicauth"],"repository":{"type":"git","url":"git+https://github.com/jshttp/basic-auth.git"},"devDependencies":{"istanbul":"0.3.13","mocha":"~2.2.4"},"files":["HISTORY.md","LICENSE","index.js"],"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --check-leaks --reporter spec --bail","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"0eea397ee77a5170c196d031d0038c2506301f27","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"homepage":"https://github.com/jshttp/basic-auth#readme","_id":"basic-auth@1.0.1","_shasum":"4bae1dbfbf0aec4dc5dc47a8d3675b50140f3bf8","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"dist":{"shasum":"4bae1dbfbf0aec4dc5dc47a8d3675b50140f3bf8","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-1.0.1.tgz","integrity":"sha512-3RS6sgcUJ+v/J+dPdSnwh/NltSkr1Y77atfeOVKM+ioZWGpH/6emrGBMSBCYqSwfAC6MSs7vEDaa6XjXKgs9kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAY49L8gHvK/UuydVFFqbNVR0Ltx88KCYmAfcMOmvqwUAiEA763mR91VNF/FI8wqAct4tN2bu5hpa3dX1ai4b1GxLKE="}],"size":2308,"noattachment":false,"key":"/basic-auth/-/basic-auth-1.0.1.tgz"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1430805252251,"_cnpm_publish_time":1430805252251},"1.0.0":{"name":"basic-auth","version":"1.0.0","repository":{"type":"git","url":"https://github.com/visionmedia/node-basic-auth"},"description":"generic basic auth parser","keywords":["basic","auth","authorization","basicauth"],"devDependencies":{"mocha":"*","should":"*"},"scripts":{"test":"make test"},"files":["index.js"],"license":"MIT","gitHead":"099e8c703ea3994d72240492aba9b115517cf45e","bugs":{"url":"https://github.com/visionmedia/node-basic-auth/issues"},"homepage":"https://github.com/visionmedia/node-basic-auth","_id":"basic-auth@1.0.0","_shasum":"111b2d9ff8e4e6d136b8c84ea5e096cb87351637","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"111b2d9ff8e4e6d136b8c84ea5e096cb87351637","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-1.0.0.tgz","integrity":"sha512-qzxS7/bW/LSiKZzdZw3isPjiVmzXbJLM3ImZZ62WMR3oJQAyqy094Nnb0TA2ZZm65xB7nu0acfTQ99z7wwCDCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5LlIiXZlFzHwct0YZf1d5V9lCqZTcyvNQpi0fdbCQhAiEAmBns6cs/Wec4qnmSJUkX7hSPb0cwBqHCfymKPw2z0iA="}],"size":905,"noattachment":false,"key":"/basic-auth/-/basic-auth-1.0.0.tgz"},"directories":{},"publish_time":1404692365361,"_cnpm_publish_time":1404692365361},"0.0.1":{"name":"basic-auth","version":"0.0.1","repository":{"type":"git","url":"git://github.com/visionmedia/node-basic-auth"},"description":"generic basic auth parser","keywords":["basic","auth","authorization","basicauth"],"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"license":"MIT","bugs":{"url":"https://github.com/visionmedia/node-basic-auth/issues"},"homepage":"https://github.com/visionmedia/node-basic-auth","_id":"basic-auth@0.0.1","dist":{"shasum":"31ddb65843f6c35c6fea7beb46a987cb8ce18924","tarball":"http://registry-npm.ywwl.com/basic-auth/download/basic-auth-0.0.1.tgz","integrity":"sha512-sCz6E05DMvrA9dUBGJFfnQ3qs+/lQkVr7qjOT5XMMNfpTzWbpkElpzXfnbNlBjPnDQyz0uBFJ4nELJRIdcKoNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7OlSny6YFRpDDTBWcd6OBOOxb6YXyOH6sh2eBO0piwAiBvEWvSEu1+61h1JpKKr/asNomJkwYGkbBzseuOI8WsNQ=="}],"size":1278,"noattachment":false,"key":"/basic-auth/-/basic-auth-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1385839206195,"_cnpm_publish_time":1385839206195}},"readme":"# basic-auth\n\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-url]\n[![Node.js Version][node-image]][node-url]\n[![Build Status][ci-image]][ci-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n\nGeneric basic auth Authorization header field parser for whatever.\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```\n$ npm install basic-auth\n```\n\n## API\n\n```js\nconst { parse } = require('basic-auth');\n```\n\n### parse(string)\n\nParse a basic auth authorization header string. This will return an object\nwith `name` and `pass` properties, or `undefined` if the string is invalid.\n\n### format(credentials)\n\nFormat a credentials object with `name` and `pass` properties as a basic\nauth authorization header string.\n\n## Example\n\nPass a Basic auth header to the `parse()` method. If parsing fails\n`undefined` is returned, otherwise an object with `.name` and `.pass`.\n\n```js\nconst { parse } = require('basic-auth');\nconst user = parse(req.headers.authorization ?? '');\n// => { name: 'something', pass: 'whatever' }\n```\n\nA header string from any other location can also be parsed for example a `Proxy-Authorization` header:\n\n```js\nconst { parse } = require('basic-auth');\nconst user = parse(req.getHeader('Proxy-Authorization') ?? '');\n```\n\nA credentials object can be formatted with `auth.format` as\nbasic auth header string.\n\n```js\nconst { format } = require('basic-auth');\nconst credentials = { name: 'foo', pass: 'bar' };\nconst authHeader = format(credentials);\n// => \"Basic Zm9vOmJhcg==\"\n```\n\n### With vanilla node.js http server\n\n```js\nconst http = require('node:http');\nconst { parse } = require('basic-auth');\nconst compare = require('tsscmp');\n\n// Create server\nconst server = http.createServer(function (req, res) {\n  const credentials = parse(req.headers.authorization ?? '');\n\n  // Check credentials\n  // The \"check\" function will typically be against your user store\n  if (!credentials || !check(credentials.name, credentials.pass)) {\n    res.statusCode = 401;\n    res.setHeader('WWW-Authenticate', 'Basic realm=\"example\"');\n    res.end('Access denied');\n  } else {\n    res.end('Access granted');\n  }\n});\n\n// Basic function to validate credentials for example\nfunction check(name, pass) {\n  let valid = true;\n\n  // Simple method to prevent short-circuit and use timing-safe compare\n  valid = compare(name, 'john') && valid;\n  valid = compare(pass, 'secret') && valid;\n\n  return valid;\n}\n\n// Listen\nserver.listen(3000);\n```\n\n# License\n\n[MIT](LICENSE)\n\n[ci-image]: https://badgen.net/github/checks/jshttp/basic-auth/master?label=ci\n[ci-url]: https://github.com/jshttp/basic-auth/actions/workflows/ci.yml\n[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/basic-auth/master\n[coveralls-url]: https://coveralls.io/r/jshttp/basic-auth?branch=master\n[node-image]: https://badgen.net/npm/node/basic-auth\n[node-url]: https://nodejs.org/en/download\n[npm-downloads-image]: https://badgen.net/npm/dm/basic-auth\n[npm-url]: https://npmjs.org/package/basic-auth\n[npm-version-image]: https://badgen.net/npm/v/basic-auth\n","_attachments":{},"homepage":"https://github.com/jshttp/basic-auth#readme","bugs":{"url":"https://github.com/jshttp/basic-auth/issues"},"license":"MIT"}