{"_id":"parse-bearer-token","_rev":"9-2172321356c526a1f4ea54901a90d3ab","name":"parse-bearer-token","description":"Parse a request's bearer token","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0":{"name":"parse-bearer-token","version":"0.0.0","description":"Parse a request's bearer token","keywords":["bearer","token","authorization"],"author":{"name":"Stephen Mathieson","email":"me@stephenmathieson.com"},"repository":{"type":"git","url":"git://github.com/stephenmathieson/node-parse-bearer-token.git"},"dependencies":{"debug":"^1.0.4","express":"^4.8.5","mocha":"^1.21.4"},"devDependencies":{"supertest":"^0.13.0"},"main":"index","scripts":{"test":"make test"},"license":"MIT","gitHead":"1b85341fa2b52c106de1139099940a9f1bb9e102","bugs":{"url":"https://github.com/stephenmathieson/node-parse-bearer-token/issues"},"homepage":"https://github.com/stephenmathieson/node-parse-bearer-token","_id":"parse-bearer-token@0.0.0","_shasum":"bafea50793dc358ab7271a3f3b9ee19e42d3b876","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"stephenmathieson","email":"me@stephenmathieson.com"},"maintainers":[{"name":"stephenmathieson","email":"me@stephenmathieson.com"}],"dist":{"shasum":"bafea50793dc358ab7271a3f3b9ee19e42d3b876","tarball":"https://registry.npmjs.org/parse-bearer-token/-/parse-bearer-token-0.0.0.tgz","integrity":"sha512-WoWUFov9aSSKSJrqb5JinnOxM/8A71i0J49+DVP5dK3IW2jNV7a+kuF6+JNDnDK9JyuuvW6XnRau2KhtG8MYeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJa47yKkTzqDLeKBBrhMWVJn8WYT3Op9fN33Uy0Ci/jAiBdPyF0pfJbuS+BzUsi6frdhDPU41FmFaRqNbCxnALKNg=="}]},"directories":{}},"0.0.1":{"name":"parse-bearer-token","version":"0.0.1","description":"Parse a request's bearer token","keywords":["bearer","token","authorization"],"author":{"name":"Stephen Mathieson","email":"me@stephenmathieson.com"},"repository":{"type":"git","url":"git://github.com/stephenmathieson/node-parse-bearer-token.git"},"devDependencies":{"supertest":"^0.13.0","express":"^4.8.5","mocha":"^1.21.4"},"main":"index","scripts":{"test":"make test"},"license":"MIT","gitHead":"635213235114c030eca142c406d427ad2725cd45","bugs":{"url":"https://github.com/stephenmathieson/node-parse-bearer-token/issues"},"homepage":"https://github.com/stephenmathieson/node-parse-bearer-token#readme","_id":"parse-bearer-token@0.0.1","_shasum":"6a9bab9239d7f99d8be89cdff0d98eb50de70729","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"stephenmathieson","email":"me@stephenmathieson.com"},"dist":{"shasum":"6a9bab9239d7f99d8be89cdff0d98eb50de70729","tarball":"https://registry.npmjs.org/parse-bearer-token/-/parse-bearer-token-0.0.1.tgz","integrity":"sha512-KSp8wnb5isBVKMQfkPt97eGIueBDZR99FwJmKW6emy11Jj7XmgT5XdIIMCNNYvMsG/JgqdRU9NOHrTfb/r0CZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtycRUXFyKzK6X2c4huMRLDHr+Xpt56Xtj6NbS7ZzjmQIgNHyJ6tAzq4BRfYpjJu94+It5CuDMmWEzoLyirIlToHc="}]},"maintainers":[{"name":"stephenmathieson","email":"me@stephenmathieson.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/parse-bearer-token-0.0.1.tgz_1477607000582_0.6454122113063931"},"directories":{}},"1.0.0":{"name":"parse-bearer-token","version":"1.0.0","description":"Parse a request's bearer token","keywords":["bearer","token","authorization"],"author":{"name":"Stephen Mathieson","email":"me@stephenmathieson.com"},"repository":{"type":"git","url":"git+https://github.com/stephenmathieson/node-parse-bearer-token.git"},"license":"MIT","scripts":{"build":"tsc","postbuild":"echo '// CommonJS support\\nmodule.exports = parseBearerToken' >> dist/index.js","prepublishOnly":"npm run build","fmt":"prettier --write *.json *.md src/*.ts","lint":"tslint --project tsconfig.json --format codeFrame src/*.ts","test":"ava src/test.ts"},"main":"dist/index.js","typings":"dist/index.d.ts","lint-staged":{"*.{md,json}":["prettier --write","git add"],"*.ts":["tslint --fix","prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"semi":false,"singleQuote":true},"ava":{"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register"]},"devDependencies":{"@types/node":"^10.11.1","ava":"^1.0.0-beta.8","express":"^4.8.5","husky":"^1.0.1","lint-staged":"^7.3.0","mocha":"^1.21.4","prettier":"^1.14.3","supertest":"^0.13.0","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typescript":"^3.1.1"},"gitHead":"338476f3f3166ab65c3a2dcb80d3d44b061c953c","bugs":{"url":"https://github.com/stephenmathieson/node-parse-bearer-token/issues"},"homepage":"https://github.com/stephenmathieson/node-parse-bearer-token#readme","_id":"parse-bearer-token@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"stephenmathieson","email":"me@stephenmathieson.com"},"dist":{"integrity":"sha512-TkRmzU0IcsZaQFcwdBnDv8TraKcsIcOcQ0Lmj7f0tZhbyUv7k0Y3euwue74ZeD4gf6dFugQfVqmQleu5LEAYww==","shasum":"718906a836730d1cec026f06dd44fa7e8094f12b","tarball":"https://registry.npmjs.org/parse-bearer-token/-/parse-bearer-token-1.0.0.tgz","fileCount":12,"unpackedSize":9854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrTtPCRA9TVsSAnZWagAAU4EP/3nrDUN7sUmsBiX1/CmU\nABP5VfxAXeJZuzQAu9sw9AJgAbiHKcmQ1sgpgtpXYSPs/13xQlv4zZp+Tlri\n6ykSEkho2YFF6MnoTUqGEuKcDC/C8LCO7QgBb0WIZpZ976JeXpdsWd3dBQMj\nIG7Spv+0YKDGpLyUKvXlrv5FQ2UhXKs2PSoZBJDbGf9O0Hw5QSuvGZjf5q/j\nJy9Y8Zd4ge2DJci4M1T0HuLY5IZ32GSyar6HVAROgvVqyBcW1mFaEJlmhdZX\n6ysnvHNAMFlPKSLVpsyizRHt8mYaIZfYm8lH66cnI4OTHGRh83wmaStb5nyM\nXfUNlTV2CSw75e1xXN1lFteHPCcXEnG3xPxyQmJ203arcL7vlIB5K316Zqgf\nfqE0kkeCTaPv8ZRL0o/gFbD58CD3jwthIuiLk2JSv4TozcsFvYmSbmTrFsEU\nIYRkD0cMW1FWdXutVeuZpO1MY7taSfOm8Bb3zt2m+eGkIKJOdAjtg8mjM4ds\n/UFugywqVXVLZuV6mtXDLuAayTrDFdG1d2tJh1ixbwekDsT6GVRxDMA6xZwt\naiebNwgdU7W4jCRfGqI3ZLBsJfB9x4VmZHul0FoSJV8SUdC2vA9ZhcYo8YeM\nEuGdJoT8s7kiwn8SMc+XqhE16OiIZISetgokwNWshPMBWjKqvgi1m54RAnV7\nXWYL\r\n=fS+S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVf2oJN+1m4lLZvtQi7PsiYMy5UlQckc0vyjBtMMMA0gIhAIQhsHoIwIX40ZtOkBnWKLrLsgoSVE2eHfGJRUrp3ni1"}]},"maintainers":[{"name":"stephenmathieson","email":"me@stephenmathieson.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-bearer-token_1.0.0_1538079566751_0.4008015592590599"},"_hasShrinkwrap":false},"1.0.1":{"name":"parse-bearer-token","version":"1.0.1","description":"Parse a request's bearer token","keywords":["bearer","token","authorization"],"author":{"name":"Stephen Mathieson","email":"me@stephenmathieson.com"},"repository":{"type":"git","url":"git+https://github.com/stephenmathieson/node-parse-bearer-token.git"},"license":"MIT","scripts":{"build":"tsc","prepublishOnly":"npm run build","fmt":"prettier --write *.json *.md src/*.ts","lint":"tslint --project tsconfig.json --format codeFrame src/*.ts","test":"ava src/test.ts"},"main":"dist/index.js","typings":"dist/index.d.ts","lint-staged":{"*.{md,json}":["prettier --write","git add"],"*.ts":["tslint --fix","prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"prettier":{"semi":false,"singleQuote":true},"ava":{"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register"]},"devDependencies":{"@types/node":"^10.11.1","ava":"^1.0.0-beta.8","express":"^4.8.5","husky":"^1.0.1","lint-staged":"^7.3.0","mocha":"^1.21.4","prettier":"^1.14.3","supertest":"^0.13.0","ts-node":"^7.0.1","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-config-standard":"^8.0.1","typescript":"^3.1.1"},"gitHead":"a99d0b23efb05ea33e2022bac90db70c71fc7542","bugs":{"url":"https://github.com/stephenmathieson/node-parse-bearer-token/issues"},"homepage":"https://github.com/stephenmathieson/node-parse-bearer-token#readme","_id":"parse-bearer-token@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"stephenmathieson","email":"me@stephenmathieson.com"},"dist":{"integrity":"sha512-64FLw+pKZQPnoHqryZ7aGqpIc5ud2Xe1TnxBbK5CmUhJtYjVTKt//BLTP/zYhVs3O5OWsCDdqyoPnYd3SivQOA==","shasum":"43b5222a8e6e73e4c8e44973c95856548452b266","tarball":"https://registry.npmjs.org/parse-bearer-token/-/parse-bearer-token-1.0.1.tgz","fileCount":12,"unpackedSize":9760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcS4aeCRA9TVsSAnZWagAAAzMP/i/b8EAYL4o3ZYI9e1EO\nyua3j9FxR+L1xF6zn22mh6ULiZbs+ogW0NTlxISYMEFj4hjBY2L/Q84WA5Qh\npiBpK2F64Mmy5BXrsKu+Pm7nQNY77BMhFVbmoKVo40Wo8KsfDKVYV5WGsaZ0\nqs18JBk6Ffsm+LyiAM+4vgtYq+/cXDupukwO2GSmlYq+FnYc2BLNerCm0W0s\nS0D9ZhOYBS0/vZgSCmQhyYiCv0rRqUppxDbxb5MB/MMQhETUY+3x7dMFRH1b\nv72bCeNdH5frlTlirmoAGaVVErCoveA+QMXjnyS4/5MnAFF+IVW2kEgRIRmv\nwQ/ike/UogiBJaj9ZR7ljzg9UNARBRgbQZXLIJatL7tTk55Mb5cO+LvNy5qo\nsNJtzsnmCzAXR+jFapklnpZPWk944GQ6loXI5kYUicwXS6fcV5k0FUDQIxbP\nFVRSlR5yBTXK1ObusEUjmJaXXtk+0kVwp/NsJB/Emg+sZElCOjQIOJHp9jU3\nuMR8TyggRAiv9kMzXwSZmLiQD2acWqHpRrW7sUXhVr0sJbl6ZY8bVRXF4jgr\nUg8Nb6TI3iiVKYnUWQ/qq+7Ejnk+U3urANydJrTESenOTw9UAXA1B/Vf3rMI\nOLJ+lc5HEmFu16x3BMYeWTWsPJ09Siy6YwdoEjRLcLo9cB941eVGtZgOlb0D\na6s9\r\n=8CLc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOqyjEJDHn0m7V1qNbX1siw4A+tOx3p4zjVv2JhC26lQIhAP7G97JLP1ynSP3GJSIr+7mGmX4ekhAknnkYACtkUt1D"}]},"maintainers":[{"name":"stephenmathieson","email":"me@stephenmathieson.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-bearer-token_1.0.1_1548453533933_0.012148151543625696"},"_hasShrinkwrap":false}},"readme":"# parse-bearer-token [![CircleCI](https://circleci.com/gh/stephenmathieson/node-parse-bearer-token.svg?style=svg)](https://circleci.com/gh/stephenmathieson/node-parse-bearer-token)\n\n> Parse a request's bearer token.\n\n## Installation\n\nWith `npm`, do:\n\n```\n$ npm install --save parse-bearer-token\n```\n\n## Usage\n\n```js\nimport parseBearerToken from 'parse-bearer-token'\n\napp.get('/foo', (req, res, next) => {\n  const token = parseBearerToken(req)\n  if (!token) {\n    const error = new Error('missing token')\n    error.statusCode = 401\n    return next(err)\n  }\n\n  res.send('secrets!')\n})\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 Stephen Mathieson &lt;me@stephenmathieson.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"stephenmathieson","email":"me@stephenmathieson.com"}],"time":{"modified":"2022-06-23T10:27:36.554Z","created":"2014-08-27T14:03:22.722Z","0.0.0":"2014-08-27T14:03:22.722Z","0.0.1":"2016-10-27T22:23:25.266Z","1.0.0":"2018-09-27T20:19:26.946Z","1.0.1":"2019-01-25T21:58:54.081Z"},"homepage":"https://github.com/stephenmathieson/node-parse-bearer-token#readme","keywords":["bearer","token","authorization"],"repository":{"type":"git","url":"git+https://github.com/stephenmathieson/node-parse-bearer-token.git"},"author":{"name":"Stephen Mathieson","email":"me@stephenmathieson.com"},"bugs":{"url":"https://github.com/stephenmathieson/node-parse-bearer-token/issues"},"license":"MIT","readmeFilename":"README.md","users":{"ash":true}}