{"_id":"githubauthreq","_rev":"71-491e3bd0390d3756b90fb17033e3dbff","name":"githubauthreq","dist-tags":{"next":"8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971","latest":"8.0.0"},"versions":{"5.0.0-next.1585284830.8304b877c8fb074af5f9339d2d94eccd20440219":{"name":"githubauthreq","version":"5.0.0-next.1585284830.8304b877c8fb074af5f9339d2d94eccd20440219","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"cross-fetch":"^3.0.4","simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"8304b877c8fb074af5f9339d2d94eccd20440219","_id":"githubauthreq@5.0.0-next.1585284830.8304b877c8fb074af5f9339d2d94eccd20440219","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-xuxWg2fpxdkh+PtvgbNstoO6UtNKJQ3PH2uDZhI5iOfmWJXQa0bgfRmUz2LXia+MUOp/B7dndp/p7xfDIvlQeQ==","shasum":"61bbeae37977e10574566036df16c6db0bd6aa06","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.0.0-next.1585284830.8304b877c8fb074af5f9339d2d94eccd20440219.tgz","fileCount":9,"unpackedSize":28413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefYbgCRA9TVsSAnZWagAAk3EP/ROAa05rMN8juD5wNdy9\nIrYVnw0aa7bXpgCmqVOP4Qb1SB4lWwgGuKh4HK4mRzbbQDTJlSuRnUMRb180\nBmquE4+N55K5/527qgbh6z2+gHsCrSUUx+Mv7C+qJSWnOTxlcIifHITj7zyb\n8G81mVOFsvPoMyUSHURTFOWAflgo8jdXDAfgx4seWHo1w9g/CRn7S7emXoX5\nmQcC7HCxFK9dIMQq8jiQXnC03txbWdWaMTL7hKDgEVJAcZNn5+iOqvpZ08rb\nBRT0q4MF8qT1Er5Vc0A8b3TOENMy4xuoKRmWMo8tAoAYbhQD1VKY9oop+JZc\nnqbR5G3QJDPEjy+uj71UMuq9C6es2qw25gL61ybxhDKs0HO2r+j7p3RE9SOM\n2wyq+wAwsoeDzjN6rAlvrRmUYR7iV68avqlQfl5rPIpta4TSDM7Vz9BtGJBz\niNq+88weqYLtHGztiINyZirX0MFVF6BxDCYSFvuD+HcotDb+tIjTG3zAVpCn\nIbB74AOTIwIXre+E4dnIdqBZbDDIIW2MfHPtoWupIuAEYVMeLm4ErMoUHAs6\n9UkTvmqAETv+Q6qsOaoxnKmxt7OqAfn+5o7MQXSTLd5r7FuwREX2P92SZgif\nguiZZqFxZsdQqw5wjz5u/H6GFcxxOj6g7VXPHWw/M87uJ4apNWNsYB09w3Pq\nWV4Q\r\n=hLGW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGHhL/kyADivn2lZQ7f4uKjZSIaLQoIKbhtCGEKW/ysUAiEAoj55JHNupM9NVRsuX0UFt3Zt3qOm2L9pRwfiGzJw1qw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.0.0-next.1585284830.8304b877c8fb074af5f9339d2d94eccd20440219_1585284832393_0.3523988135837024"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.0.0":{"name":"githubauthreq","version":"5.0.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"cross-fetch":"^3.0.4","simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"8304b877c8fb074af5f9339d2d94eccd20440219","_id":"githubauthreq@5.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-XvkMa+v9FdTDESv3zJjsmE7OvgkiWSQhkd0CptBJlLPWaCSYkGYH03/cqq5lpcMBCTBlL4jS8YSfWQzewPn1zw==","shasum":"85fc4a8e554fd7f6c8f6972541783f33d08fe9ef","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.0.0.tgz","fileCount":9,"unpackedSize":28356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefYbtCRA9TVsSAnZWagAAuCcP/ibgS0zdpyEeZIvI0l6q\neoBfrPwuY2jDRRiJOeCFhgh8gyjx+sYhSFL3FgXMS8U/PJULayHlhU3rVO2n\n+ih7jgGQHvXYUEl4vQ2POlsWpvMoEE80aHTdS3pGF7qvSk2M2VGdXCLL24VN\n8ZtiudVMV2pN3Vb054k4lMvACDaZgdYVuAhgNW9XnFJPMNoGX6Be3dHNpyVG\nLciEXV6rYkwsrtYayT72wlc/qNG+MUmtWBhFfOYZ+3yEJQwQlSWv7nRq6bPA\nmRNTEyL/1J+/f2wjNPFZgSPjHNl/k0wgIKnZAAwSX8CGCz3ZL076seaV4uhO\nh573+kGlbD2ZOJ/CX49Ux2Jdx7ASsI7F62LUairxYQjc9Z/mEhH05irrzJqt\nSgEXSAQ/4xpR9agpp3hTUvwQioYyIRxlwS6EoMQtjBEUSwzo36UvbWvb3r1v\nctLKa2jvKLe625ax7CHAHVsZ9YRneADwvE/wzuzHxbBqEohEUkzOFkCZe2dt\nRINnVZhaBsHLkco5kY4Eo2MGOPtYQ2XpZ7QfUdHJVz4d0iPG0/C/dDKnR5s+\nOCbFXhe8dST63b3w/ANO4DIvJcnoEzWikO6dJ0KeTBHit+a218oi9p4vDxwQ\nCoT4w787AugQ9R0wRY9cokWlEJWyxzyoCdtkiJXaRtjcPFyPGPMDlWOfiSwK\nvr/8\r\n=84yd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4Q0YfStvndtn8LGvb/aMvtdMP6p8JPIYDx4GJN2E/wQIhAMkaXo57WgWSypHaFuNtRWk6Z6zg2lMJU7z9kKLe40cJ"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.0.0_1585284845000_0.09694606814074969"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.1.0-next.1587956066.f0d0236ddc5b82e02c7613314827cd1e16e52b73":{"name":"githubauthreq","version":"5.1.0-next.1587956066.f0d0236ddc5b82e02c7613314827cd1e16e52b73","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"cross-fetch":"^3.0.4","simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"f0d0236ddc5b82e02c7613314827cd1e16e52b73","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\nBoth `getAuthHeader` and `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.pika.dev/githubauthreq/^5.1.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^5.1.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@5.1.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2018/index.js</code></li>\n<li><code>githubauthreq/edition-es2018/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#9th_Edition_-_ECMAScript_2018\" title=\"ECMAScript ES2018\">ES2018</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.1.0-next.1587956066.f0d0236ddc5b82e02c7613314827cd1e16e52b73","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qK6RImC2itf81D4cqgmajx5l47xBQigcQ8l3wrsF3LRWrLTeNO0a8u/fruUWXXALWOXq3LPrgTmAdyZ5Yqxlgw==","shasum":"1e1d6162fdb43aaa05e20edc71c2fb4b696f739c","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.1.0-next.1587956066.f0d0236ddc5b82e02c7613314827cd1e16e52b73.tgz","fileCount":9,"unpackedSize":30865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepkljCRA9TVsSAnZWagAAuH4QAKG0bCsRzO0Xfbzf5Vtw\n6DEggSmgh6kLwTA+H4jfdOVAqwYpZwSeOGYAa54083ukSLdncUZaikCIOJS0\nU5X7pa1Xd1diIFkKg5o28bFx9CsNZDDbozLnAaZ+MoWBHy18XZiMWyEtKs62\ngtRvtnsiea+N/j54C1cVRKuMKOSKPh3NEfer9qXeol3SIreG4TIUzKwkOv1i\nCcdeCGYVdASQFqHN5LLxEmit3Pe0m1c4fjR2w+gkarMp3aAgbeBk99L4GLzr\noDw9c9LwSMTg4fq9Sx1Vut+8En39C6JVHvnTgqpubp8B89UYTytinkzOWRmj\nO3tvTYnMfslMmjaj7DHcNfBMcFavO6Sqprr1n08xj6Zgy2Fanjj/+nIBOzjD\ndowKnWgb/5GONWnAdChvhnZ/Fcw36kVfUkbRgtyieyseM8y09zGifcY+TJ+w\nrwqlJa4v3W8g8qb80zYGxhlyk6j7moJgX/lobxJtIXwJ2a638KgOY0Ds3vrk\nGTrAlF0qt7Y/Iq9wuDTvE2/fnuWc5v2WZw4QtqFUjsjOBSE/bNK3PMDvomEH\nTZN3bwWHPTjAHrUSSEFL4awmM85Zz5xdc3IkQ5pdaruVektebrwnAyzL6D4T\nsYiaBLlsY3BTo7aiUuSykL1jqxsiKRfnqG3OZ1uclaBQpKRdRm4OvCWLto1z\nNaTc\r\n=d3b1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJRrCpHRawpGf/ylyCmwwmtrq0pjFKPc3fBdQP/MyNcAiEA6UwhWcIH2PZLm7H7hrKXj9NptpHxxbEZM2vC/GR3S5I="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.1.0-next.1587956066.f0d0236ddc5b82e02c7613314827cd1e16e52b73_1587956067116_0.9703043152697952"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.1.0":{"name":"githubauthreq","version":"5.1.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"cross-fetch":"^3.0.4","simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"f0d0236ddc5b82e02c7613314827cd1e16e52b73","_id":"githubauthreq@5.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cKkDUZcxktwrJLunkUSZ8x9owjWvFkdWOO3laIAEHFxrESgmLlWSGhq21AetMIw3sMTQE3R+DxTAbHJNlP6RpQ==","shasum":"f040fa96fb68d32098e94f810e693cb737893dc8","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.1.0.tgz","fileCount":9,"unpackedSize":30808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepklvCRA9TVsSAnZWagAA02MP/2NaboU42K5gD7J19s/K\n3rSi1fIJaqUXawZjNHsxiGno1/Y46UDpB5qTs33fuAOn2gRlEXgR75zkKnAM\n5kOGMIfXMwqBrO2yBGJ1BOdVL0k6TeBv9EVns+J0fJiXj3nlApXt8EYhn4UE\n4/8thHITNXJ5ZjasiSAC95NSFq7SoJS11WYEIuOVOz3jtv2Wg6wHH4srD2gi\n6d6dBKZHjnZphOj5pK+OJJhhlh+qe2GrZIZp/4RBY8BFQFDpoWT8cpRgcMVZ\nX0TkRmYxJ/JIY1wv2fK1WjDCX2nqNo9LoLvvl9lo3RgIElZEe1uW6q6p0Sjf\nGvFYWtmycFNkLu4MP9dM+mCD0KkHF0mmzaTXiiFH9JLCeDO5/VLqLZIAbYJF\nIukQ+VKKi8sEt/iqCPonPebBZvQaxAF7aEgNypUuOmbIrEVPXh4mjIn4uYUs\nVTksSvznr1VGhf9K8I3T15YjsEL8rHgAtkaA2I/W7fKITVYB9NcdEqO0SsJT\nBWeOR9DzBAvcWVvb7+XD9lsfdj4LSKBFuorTJzrxrTlT4sayXILLRx7DaVFE\nXLA6VrWvZ+KTI9Uwcm3+QEof1ga2F974sStEl9lKo/Fcvvm7tzByQ9wc38lQ\nRW2rH4eZCTTcvRExN3DQc9d1vWH3ndGHs5AF3Xcz51gaJVrT457nHssxK7rc\nGjMX\r\n=fm20\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8LWSqcJFvWYDHi4aFgNc6npLG5qVxHs+EfQ3KRcNlsAiEA8T9giNFKko+W0OlYeLtXGTYHUqtQcpBghUqbtqc++yU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.1.0_1587956078784_0.672831230756795"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.1.1-next.1587956307.533a763ea280cf6894b44a761eb7dff889f5d9e2":{"name":"githubauthreq","version":"5.1.1-next.1587956307.533a763ea280cf6894b44a761eb7dff889f5d9e2","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","cross-fetch":"^3.0.4","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"533a763ea280cf6894b44a761eb7dff889f5d9e2","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\nBoth `getAuthHeader` and `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.pika.dev/githubauthreq/^5.1.1'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^5.1.1'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@5.1.1'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2018/index.js</code></li>\n<li><code>githubauthreq/edition-es2018/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#9th_Edition_-_ECMAScript_2018\" title=\"ECMAScript ES2018\">ES2018</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.1.1-next.1587956307.533a763ea280cf6894b44a761eb7dff889f5d9e2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-F2d3XD0qxn8EbnPBjabMJfRGRdm9dj53vIwHo/lqUsb7SCECd7njJB7G4Fv4w6RjY8xvSmXw5jwTQlBZ2IwBsg==","shasum":"fbe3cbe8398ebc8c139d411770d63a7a9b2958e6","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.1.1-next.1587956307.533a763ea280cf6894b44a761eb7dff889f5d9e2.tgz","fileCount":9,"unpackedSize":30958,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepkpUCRA9TVsSAnZWagAA0ZsP/RwcQ5DtqY4iq8rsL/Q1\n2YcdvfQ6xPT+of1h0Up38QHsxRBzLEIz6o575SwkrY9DbV89jMvizsEKKc5j\nJS+d7Bax0/WX43gpoecv5LwzvjAnv3kLB1qwg210kfYBqCmYIQb4A5Fsgja/\nfajzxACdfrJoGfAh11pqgVpK6hePx0kp+ZX7VSQNu2RpIMqMSOzewGZiD95e\nYd/dEMmgpSOQ5okHtn9uCpz8TeD749MhgtK+gWnVIxy7/OO/hmF27tTiUzVw\nfukvWUNjs7p4L6Pr8zkF9SCErazgBlm4RXBKIJ02eK35mKs4ErEsw5XMsPKu\nfo6fRwxrWp9FQCaX4TV7AwPD39b/viulExRcpu1YAOCfct8IEIJVvjDho6Hw\npQj6j7IuD4uFiVBve6NHj+eJ+2UYyrG38qeGabbeHIq+eY799A1fBpGpM0pT\nK3XsW0YCsK07B61MJWjapLO5Y1WBK+ko0lbzFLaicqTIDiS8nKxqj6FRUGwt\n5vT50QWdzcLJ1aN82WSf7cmqI+ntGiaIvXTNtp2//IeFtj3H0Qb9LXYYlVO9\nYeQQNqdxW5FRR1WJuyTBGvu+UD5QIeJSg3JlkLUnFy0IJD3MjZHQFyyj51EX\nqI1Wslgzdd+sELQBQZnddB79iZ5czRfwTEMZL28MUEMT+n2/yCuGg5hWAvr9\nxu/z\r\n=4uXH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEFv9xdM2fQNiizeClXATgubOaj3+g7xMKe4u7QnHUqAiEA6HYjzkXW2+DQUL9I4sMyjPK0SD9uE4DT5+iG04xKhvc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.1.1-next.1587956307.533a763ea280cf6894b44a761eb7dff889f5d9e2_1587956308492_0.997018286974781"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.1.1":{"name":"githubauthreq","version":"5.1.1","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","cross-fetch":"^3.0.4","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"533a763ea280cf6894b44a761eb7dff889f5d9e2","_id":"githubauthreq@5.1.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XgafDivfnu6qL8DvdDKq/XWDrGiq8e1rI26ra5gYRVPKa5fAeVMmh+gClF9c36Aw2/+DLohGwh1WpTe6Injd4Q==","shasum":"13d16e00a9b312554050266fe22d85177f966ba9","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.1.1.tgz","fileCount":9,"unpackedSize":30901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepkpfCRA9TVsSAnZWagAAHT4P/AsKUHDucnvHSkhIBb7o\nFnHQwaWv4yhS54HJ4ZQif/w9/Tl4ZyYyrNLsGm7ULz2MPtjGiGiWLxglbC6H\nx1DAvx38xqkqGfyVFatn1DHA0ec9Jy4CEIuMb/En8CmSsHxnYZ9zZPgsfJxz\nhml+m5THckBDBSSlpcVUnHSz2bZXyqlivvNS6UVl//BSMF+sDH+MsatzHT8F\nzJEyy6mpKWurrK35H0AnN86q1MDOcDBoFPZhBsmWg8N6Kz582vMvllkvPfk6\ngubd8yJQufO3tioZ/iMRfyCd/DXyl0EJPvLSlBYrFWEBRyfDMJtqxihput01\nOBzZGorQBgBLvgEHp8ay8QPBlyQmd3qR8tTTNYIKdIQ6F1t/Ah4C9d30+3jf\nMYXWPGIA3C6rj5etMQiBlFKsePdHghtpb+3uXUvofDZWdb0nKQtObq3v2Xmc\nU+mQcYcEOvyTuDEe/MR9oaREQOJz5RSM/MDb4LCJTIwa5lqlF6h5J0ovG7K1\nO5DCOfb5w3J+Sz1j+GXnjgiGO7VUsALNmyy0eaWRwoCOFrRfslSEhii7m7w5\necfUTgo0HqOjL8WuCab7Aub1DQFy0qp7SfiL4ptmjGBa76I66OiKGh+pNtRx\nhCWjuhqS9dsnHM3MDhKHUUN3H1armdfV4/0tXeS69QU8uUO8GlpuMrqxZLoY\n9Akz\r\n=nXmu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkSuP7jeJdj/dzhmX2KdQyRswLw8Nz8zqLoIdrJR/PNAiAmz9fLRGt8r59HHefoeP23/2cmZnT62lQ12xFCsxecjg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.1.1_1587956319131_0.42034008093442554"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.1.1-next.1587958948.98879b50ce9ccf117755ab27ddb15a371d2e3664":{"name":"githubauthreq","version":"5.1.1-next.1587958948.98879b50ce9ccf117755ab27ddb15a371d2e3664","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","github","module","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2018 for Node.js with Require for modules","directory":"edition-es2018","entry":"index.js","tags":["javascript","es2018","require"],"engines":{"node":"10 || 12","browsers":false}}],"types":"source/index.ts","type":"commonjs","main":"edition-es2018/index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.2.3"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","assert-helpers":"^6.0.0","cross-fetch":"^3.0.4","eslint":"^6.8.0","eslint-config-bevry":"^3.0.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","kava":"^4.4.0","prettier":"^2.0.2","projectz":"^1.19.0","surge":"^0.21.3","typedoc":"^0.17.3","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2018","our:compile:edition-browsers":"tsc --module ESNext --target ESNext --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2018":"tsc --module commonjs --target ES2018 --outDir ./edition-es2018 --project tsconfig.json && test -d edition-es2018/source && ( mv edition-es2018/source edition-temp && rm -Rf edition-es2018 && mv edition-temp edition-es2018 ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./edition-es2018/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"98879b50ce9ccf117755ab27ddb15a371d2e3664","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.pika.dev/githubauthreq/^5.1.1'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^5.1.1'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@5.1.1'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2018/index.js</code></li>\n<li><code>githubauthreq/edition-es2018/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#9th_Edition_-_ECMAScript_2018\" title=\"ECMAScript ES2018\">ES2018</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.1.1-next.1587958948.98879b50ce9ccf117755ab27ddb15a371d2e3664","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yVk/NprtQKIpvZvVt/VzhGlY93PyCs2XfaZp6xNqhOP1o6EzFOP/DYPYci1et8ACO+hI41OvIzLD7ZtvgAUGKg==","shasum":"09c0769f217fdf0372bc2976db5645ff5e07ac5b","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.1.1-next.1587958948.98879b50ce9ccf117755ab27ddb15a371d2e3664.tgz","fileCount":9,"unpackedSize":30964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeplSlCRA9TVsSAnZWagAACgEQAJbh00ZnhIazskQ2zZ+T\nEtAfE0tolOW/4b7J5E5KvM5FwLaPkUQr89vl3Siqf7hP6GFF1SEfyRjxNaVu\n98y+6Z1g4BRiAtrkU1gywJzg4nRaY+vS+1CO5auBgbKo6JJ+Fe57dang5HHR\nIUc9u29gtmrkGsAU8DBgiXZNkjrPBbf3VEz5caD+HOrOy0k1NFwgCB6m+JEp\nNi5p+ymWZ/vj80nuOqi8mZAG1BaIu0t2rxKaDgsEOKwXKfLCK39iO50e7ZKX\nVuBGVz+Wnakoutr1sR2seczynv5kbaao9XtziyI3oh8WfIUvC3xN5D/8Amrl\nV6zqqsXFVOf/vtZcvKB8UockM5u6k5E0fS2DUZBkdBNfA1pL6fMaXQY+izFZ\npJj2AlrBkVgw4I4bPrGY6wAUlwgFsvrsOIenc7+r3Z/3qTkTZ2XR/cXB7AiJ\np/U84w12O33GULaLhJHnb6KfecdNIGhs7iarzuqxmlOTBvxJxymwfuIMuwxs\nQ82dDt544QdixIOziRngFDd13gX8UakPF31SlbPQunIUt5ota1Ml5sDHvuIB\nZYXHKfbCO1iUwKlgBUp1zR/CPkiGyNXVC3KjkRNdOZ5G9XGgk+OvM84JMCM+\n3gIayGkdSuu39BXKySDhwXe0PohNKBP2gTrI7T8nDpd/0nuOfvNTTf+HF0BZ\newqm\r\n=Slpu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7tD7ldUt6z3KycaYr8YHby7KsoihjqHRTfXA9Z15pRAiEAk5+mkytZ4SoUaLPGdgoMynrOC11wx0wji9UuK23irJc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.1.1-next.1587958948.98879b50ce9ccf117755ab27ddb15a371d2e3664_1587958949276_0.15262404867034518"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.2.0-next.1588742597.5cbb79633aedf328e0c1ab904dacc985b7e634ce":{"name":"githubauthreq","version":"5.2.0-next.1588742597.5cbb79633aedf328e0c1ab904dacc985b7e634ce","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","dom","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc"},{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"source/index.ts","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^2.3.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.0.1","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","assert-helpers":"^6.2.0","cross-fetch":"^3.0.4","eslint":"^6.8.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^4.4.0","prettier":"^2.0.5","projectz":"^1.19.1","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && test -d edition-es2019/source && ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && npx typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"npx valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"5cbb79633aedf328e0c1ab904dacc985b7e634ce","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.2.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.2.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.2.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li>Benjamin Lupton</li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li>Benjamin Lupton</li>\n<li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li>\n<li><a href=\"http://github.com/apps/dependabot-preview\">dependabot-preview[bot]</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=dependabot-preview[bot]\" title=\"View the GitHub contributions of dependabot-preview[bot] on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.2.0-next.1588742597.5cbb79633aedf328e0c1ab904dacc985b7e634ce","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2H7teEJmouGkJt3ZF4Hzy9aaFpgAnSdpqiKlqw7o7zDRNOukmQPx+isapV071OaviKwQm7rdQBIJPMazZHH8sQ==","shasum":"a86ab9df94374660ed902f920cae80a22b03a528","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.2.0-next.1588742597.5cbb79633aedf328e0c1ab904dacc985b7e634ce.tgz","fileCount":11,"unpackedSize":35716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesknHCRA9TVsSAnZWagAA0eoP/3ylTGvk93Do6Y9x6i2/\ngkR3x+o7j9wehoDBUU0KOrxZQCeVoKq7PaI0ooU+IyutOvKE3CEKH5TDf3aK\nD7zmsbd0JfJbHHddJ2Mf8sLlpK9Du/sf0ohNo8cQ8CTPUv7unITEtOB5tfgg\nlKEpH0tOiE4ntu1il0F3X5edVX4CKLpVhZPtrrjWtCG/j4m6iIha0zCPFAVp\n6HdgplTqphp+Bl3Ja2Qg6BkUGe6a/F9q1C4Ec70Y6EvVnpaRHZaIXT4ly99Q\nig33jSflHGbY6hX6qOImo175IvJl8dOesOUmQE0idLcBI4UJO67pD3Lm4fFa\nWu/zhMjmeFE7ttgNKw/Q6RWrnh3SvJJjMQqRmushV78w1qgnp0XO3U4cL+Oa\nMeN3qPyRhtXj0SqNAi0dF5zqEQsc6b/PPtIAINx7cktAC2zmaJb1nBDe0lsU\n3cs8YWhzRMvCwgl/P6uPo+ogm23eG0zgyrcCHRAD3i6w62dLRJsG+PjT5jN5\nIhOvVw9ovGZw28c8C6DmDdPAcPBmNQpAxa1kLJ5J2T8x7oqkD3XRVmj58yAp\nH6iwYD4T0u8q63Kh2xlBSyouxIZkA/fSAUFyNBuA/7Y4uNomPmqUedtE34+R\nXRzlOHvJ+lYPYxEvAe3KJ8CHDd8t2+5bK9C557l0TJpr5bufkS4WTvl+8lwF\nwk9o\r\n=xamj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLW9OS8cFi5o55PLWj5Ir3Uo7MljwR2n8PI21XQN4kXAiEAxSPnG+kf72DjE1PSzl76/toESi0XmGMADkwSaLPP7Y0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.2.0-next.1588742597.5cbb79633aedf328e0c1ab904dacc985b7e634ce_1588742598750_0.29194517877591375"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.2.0":{"name":"githubauthreq","version":"5.2.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","dom","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc"},{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"source/index.ts","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^2.3.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.0.1","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","assert-helpers":"^6.2.0","cross-fetch":"^3.0.4","eslint":"^6.8.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^4.4.0","prettier":"^2.0.5","projectz":"^1.19.1","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && test -d edition-es2019/source && ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && npx typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"npx valid-module","our:verify:prettier":"prettier --write .","our:verify:typescript":"tsc --noEmit --project tsconfig.json","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"5cbb79633aedf328e0c1ab904dacc985b7e634ce","_id":"githubauthreq@5.2.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8GsT670vN5jYyBbMzRpysgJ7SVmUNEy9yfUyu3WIVi4cPeoY1McqzqtjfuVAd0/kWxSU5XJmNyhCo1LLbxwmVw==","shasum":"e0eff7058683ddb47ac3fdaee6c699c93c32bf2a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.2.0.tgz","fileCount":11,"unpackedSize":35659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeskoXCRA9TVsSAnZWagAAQP0P/RbovNx/0TKViUaoHTa1\nG7UstFNeTZ8kxzRlgpolRNimgEDSkdUsSs3sSEj2EnASes/DjXJ/3z34nZ+Q\nzDIdMoxpcj1z/HNvjiBmnxogza7XRh4O740Kz/karRGWF0br4ifoYhiKddll\n+otNy6nnegJzhNzp63aZAV7vfrFS1w7RxQ6pZcxNgcrWW5CHtOl08M6DKT+W\nqwZOnjs03+V87oNDzKJAO2Wn+sN3YDjYfEnL6sgEVpWTlCNicVW5VyL38PKn\nMK8BHxNlSBNwgh9FAw7NZo7MT7azWf85dw9rjlp5eSrqTAeosoH7Sh8vHkTj\nRpYTRhuPfSG0ZZd6sF62F3005oBA6hl317DZwWC/vy6C9Mm/pOpLTFEgWSQA\nOLofLEl1fcK9cqsxQ1gp7iceO0A6D2anNz5xutDo57DJCBkKqX0kzlqf2TF4\nDYflM75tBUw3z6ZY1RmDghOXl19PKVLIPA2/+78zSwBrkk/svMcv0ExBUtMa\naKr9DtdsaDa9I5JkugAxinhO88FRvEjGuuXBIXgDVVQaOJVZcmJT4YfeNFLJ\nf9dIGZpE6c2e142SBLnJKsuyVm9BkeAuq5n5z+WRdpes8uUc2q4blgWhueEb\nvmHJdTwugN9u0ZWXz4INTVCyOzsH4fAllgf8SlCpUGCloSslf6oZgfkxJi8k\nfZSw\r\n=w13t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD38gpPiYIyEsR8eONyk0PwkSKLsSZ6QynJ8wYhnyz3bQIgO78OaRqLP9M8fsZl7r2NkaXDaOFo1oUFNhboQLTz9SQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.2.0_1588742679081_0.6306505999574552"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.3.0-next.1589165323.e3575fa633ee76666a38a8112988654c6dd5a255":{"name":"githubauthreq","version":"5.3.0-next.1589165323.e3575fa633ee76666a38a8112988654c6dd5a255","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"source/index.ts","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^2.3.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.2.0","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","assert-helpers":"^6.2.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.0.0","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && test -d edition-es2019/source && ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && npx typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"npx valid-module","our:verify:prettier":"npx prettier --write .","our:verify:typescript":"npx tsc --noEmit --project tsconfig.json","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"e3575fa633ee76666a38a8112988654c6dd5a255","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.3.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.3.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.3.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.3.0-next.1589165323.e3575fa633ee76666a38a8112988654c6dd5a255","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gIEBvr8BzRBp8r/UUmhBxZhmeP0kLGux4voO5AJKi9028RVcMKYVtfPP8Z+TPzf1FKU+0v+OuvdemrQZV8OZmQ==","shasum":"d0dab9352d2d1036d001bd5109696cbe7534cd0c","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.3.0-next.1589165323.e3575fa633ee76666a38a8112988654c6dd5a255.tgz","fileCount":11,"unpackedSize":38628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuL0NCRA9TVsSAnZWagAA0X0P/jVi+k8RMZPtr+LvCrq1\nWUmcfUaw5aUlCpCT1nNtz7MS6j/E8b0FQI7Sz6b6eB+40JhflsEG+HMAQwlk\nMmcKtdHzRCP26YFL84os+qHnqZJxY2Sgz6vYiaVTVwzwY74AbTtAMUIVEyG6\n0HmozVHAPnlqhoPVCakfSDvMMbQG3bB2i2Wi67oW98mcjRV44G+rpEv5E5t8\n10uOSaLddDNuTFxd88+YH9P9tjAJJNanWHJKqjrcr4/pNFH8hJjqEp/kP0aE\nTibkK/QamttIg76idurZFE8RKdxTYlLLYh8+sdJdN/rN3Ajb6ewBRt/evSVB\n4MeScvn7GdkT2koF6mz2Bf5dTAUWq0b6T8adtujDkifE9pZg8y5Zn6ucFsar\n7DD2mx2pt/1gQcr9Pm2VO88rBXKuqpzRpKbP2KUAuO1X/qxDFBUe0EvXw4+3\nwgky7l20sTwQoUiKPvGPEYFmwFRxAlu5DenQrxS8NtJKqWRPd5E73IrLc1QU\nmKhGIhJfU7SWVQtR7QR6KaAeRx9JkJV08BaqXnJaGK5RGXrhWuPH/txWoe4j\nsN1sWBsNQXdLx7zHpROfrrx3UGFy41W+QBkruVAiOqO2si+fyUqWqVFV6fyB\ngtQuER3LCLc56zP8Jz124TflAEn3IOkiCnffHYRAAS0oy4qZPrOwC6DYVFe9\n88Db\r\n=j9xD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmIKn9oYL6UsLboQYwNgBvLUc3oc0HLNreALldhY9GGAiEA+IiVZMjoPLrpdCBaQTSu/YENLL0TyxANpjLtkjEQQYs="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.3.0-next.1589165323.e3575fa633ee76666a38a8112988654c6dd5a255_1589165324794_0.9017203576742681"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.3.0":{"name":"githubauthreq","version":"5.3.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"source/index.ts","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^2.3.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.2.0","@typescript-eslint/eslint-plugin":"^2.31.0","@typescript-eslint/parser":"^2.31.0","assert-helpers":"^6.2.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.0.0","surge":"^0.21.3","typedoc":"^0.17.6","typescript":"^3.8.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && test -d edition-es2019/source && ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && npx typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier && npm run our:verify:typescript","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"npx valid-module","our:verify:prettier":"npx prettier --write .","our:verify:typescript":"npx tsc --noEmit --project tsconfig.json","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"e3575fa633ee76666a38a8112988654c6dd5a255","_id":"githubauthreq@5.3.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bppi2SAHRqd2AHgf7WrilgV+zg183LqzG1uANI4296gDn11knGu1cGKAAEjqpQHwPbF87ew9GfbMVmbSabySpA==","shasum":"beb5e4bfecf4e853ca2a5cf67e9123364f753d13","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.3.0.tgz","fileCount":11,"unpackedSize":38571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuL1hCRA9TVsSAnZWagAAbUIP/1ktlhkospg4UoZgKTDh\n2Vc0sSZq0HS9xICHaRaZwWLm2yV97+T92OLvI6b0k5fuFtbfT4bBTavJMmzO\nmCEa7I/Utr7tVkMwx4XJ8Cu42QRZsuxaT9tuEdeHVoin5fdx84NWtjub7jOD\nAWk6oQGSnXM1YwwzJYMNjOQME2xqaQSl5OjQ5+zSiiNBAOp8dAdAKUaIu0+L\nrS61y3AcPLtz9VLdpYZw9iz+CEZ3492+L6xtxqQB/w2+P3OiDjNKIeBEhTZy\nq7ocd4ruIdpooUceIofTODNIjKdbusW1UcYvCqxth4YCPHtQJuwfn5yGJMLb\nKm5UmJ1T3BQKf+hSZXgJnTVTg7X30TbgUEaDy0r5u4PDrApf4icqfj8YoeGw\nlrHHGaMyC2bmGkZM57UNjMUxtx3b6Xn0dCgf2ooPSS11946GTnbm2MwH2LXg\nxttt3vHlBrTG1oXqOO5i/I5TWESMb+njjpOrluNvJAlETU9DuBXNXAM0elh7\nUaWWUP8GQ+2ehkTtHfBNxLSFZluOmbn9sLR1IRVRWuLpgzrajGJUOye1KToX\nlYFZw4boulqAP+y6JptFe+OVaVZNGynUrTkDcITBADvrOuMWayT1FfrPksAc\nodF0kptf9YQSGzo04VT/XtxzTqLFiaeVQpN0xd0/by4k9RJn0meEVpLjljFS\nq/Wx\r\n=3UAh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgosFzAOEVk+qjVKCgCcdAEyFyEZrS5tNzh5R0YiOsHAiEAz3RtFhvZeZt/kivj7cl3dmJYhcV6HG9qRHOx4Mo0o6E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.3.0_1589165408842_0.6654621807603132"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.4.0-next.1589990802.32996429bb04ca6236ef244535eb40979aaad375":{"name":"githubauthreq","version":"5.4.0-next.1589990802.32996429bb04ca6236ef244535eb40979aaad375","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.0.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.5.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.4.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && test -d edition-es2019/source && ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"32996429bb04ca6236ef244535eb40979aaad375","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.4.0-next.1589990802.32996429bb04ca6236ef244535eb40979aaad375","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-nFSa32UC5m4Pscn5OCsgRFRD7Wd3HrgylMwQRIBu6fQ7NU5wBhtqcVAMT522fsmml7P5Agn+URp6BiCB6ANRzg==","shasum":"552528a0dd93bc5773df78436d29133db26bd3b2","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.4.0-next.1589990802.32996429bb04ca6236ef244535eb40979aaad375.tgz","fileCount":13,"unpackedSize":42921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexVWUCRA9TVsSAnZWagAAqusP/iCtk1l9+Pk29pNDjUHS\nvB6gOmgIWZir6hoyobBZ288FXCss1xSa5GI4OmCLXV9BJkDJ0BfL8b2vRUSo\n91tGWFg9YbHzemHAIsrEgvQKExO17LiT822eYXvogQ5Pb+vKJ3qvFjrJzela\nBRIza5+u4MLNPiNeLO6UrBvmzPPC7/ldNEC6sIWutmULpGfUWah+le17Y/GC\nIYGhUY5MXAH+06z7PqOqvEPgUAlqNoL5kVh3M4hALl9gZJu8Q7DurioiDnXe\nvIPwCAFsEWVVlrNiG+/TBHW4CJVVVk1BtHMZ06iijII7NatLAV7tC5tn3xAv\nwHF0f2uEz/LeKMx7vR5NmwAeC3dkYISO8diu6gydwoEFXPm+EF5mhg6w/XiB\nr/gR3IOqUiDEsSsPbP48Qd0GSkUvsQm28WMXzLMpBWxodzDkdyexOVYNvGo9\nk0dsR7G9i1oFD+AQi+rr/X5mKzVG53oSuT1guwvtXOoUxg9xi8LQklpIJMiG\ngvONaSLMBJa4KUwY9q6GZnO7fHn0u3YyouRjI0by7wpzZkC8xdYE/3JpIRp3\nGgueaPvILurXUwsDibbFjzZDjM17JtbtnEdMDg39vfFtfYt/dEKEhEkxPNY9\nP2Qu79/8j2fQMJfvIPbma8CxShKq2FlIGBO2by/PYXOVgPp77iZylN8xXtGP\nZg5a\r\n=77Up\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFneTIY+t/n7Ur3xckJ7SuFJv0nYNuV8ciJq+LoMejYhAiAvcyZF6CoUQ9m7QQifq/IjYkzJm1GL9cxF+uYmI4jRlA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.4.0-next.1589990802.32996429bb04ca6236ef244535eb40979aaad375_1589990803647_0.4165921436812121"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.4.0":{"name":"githubauthreq","version":"5.4.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.0.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.5.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.4.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.0.0","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^1.6.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && test -d edition-browsers/source && ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) || true","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && test -d edition-es2019/source && ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) || true","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && test -d edition-esnext/source && ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) || true","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"32996429bb04ca6236ef244535eb40979aaad375","_id":"githubauthreq@5.4.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uAm3N2F8fX9m8Fd29kudda0y3qSKVATL4CpmEsqbUadi7IABnTIVFdYROtc4o7eDL/4KhLChC2lyGkC4eDSEdA==","shasum":"3a302172be683a07d1aa492a6adc55405646cb4b","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.4.0.tgz","fileCount":13,"unpackedSize":42864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexVXnCRA9TVsSAnZWagAAYDsQAI6ovBUEe83RxG8Nj0nD\naUnzrz0gzQxvU1VL8YeCIoC6T6+0k5grh6kfiLP5878kMy8X4T2dM3sgFDwm\n24BL/l1KGd0H05tVMdlaCRqejOFW9p7wImNcKsAua+R/vbPyfdD/siLVbB5w\nsIUY7mvNY1wjczqmybKb27aSzrIpVDe0pvQzP77IFRhLvznlcGi8SSr4GpeY\nhUGHjWjOwnt9SZIqhPm/JQSpwTeJsmVxDBP9d6lPQaSOWEkAPo2LfTo71cCo\nf0SpVFwsrRoNkwpPbLXsmOjnn2pAoAEEV98xhVIrzB7m/tW3yNXDZ9dIAq/D\n0yy5QlIP5WOquZnNRNFBPouSWoT0m62Wky4HQ+wP4GT5+5VJDpOWZFXMeCqW\n5VK/7yXIvIYFL4t+MrtZw4R7yaEVrJ9AoQob0x40ogfpfEAjephhN0XyT38r\nyRHKaEyvS6CYAOZBTjwB+wK1gX1qFnmc07AN7zxcqbHW3U8YL5dluTpJ+SYe\n9l4dUb9iMAIR6snadthOWI8PdGBg/9FR+WPFEogQtB+W+GdSSfOA/sjwmF39\nEN7fG9I/JjYbyx4eTwTr7kNOcnrIVt4xC9Z1h23rJKfqO9lw9ByLz6h+Ocrh\n/5jONQX/JWlg64NseyWhO3wO6/jnUkZ34MF3VCo6geT9mw87/zSS41LDtnWQ\n32is\r\n=GN2L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBRIYVAUAzfYp1hZJPdVMRYQPmUu9IHTZpnrx6SIBYHAiA0lXu5jhgnEgxF4kPQ4xhM6ggPL8OK1sL1s5piH1zDuw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.4.0_1589990887092_0.6779737369123919"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.5.0-next.1590039255.4efeeaad000eb1ac7e9b2442cf252d89da2741d8":{"name":"githubauthreq","version":"5.5.0-next.1590039255.4efeeaad000eb1ac7e9b2442cf252d89da2741d8","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.6.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.5.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.1.0","prettier":"^2.0.5","projectz":"^2.2.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.0.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"4efeeaad000eb1ac7e9b2442cf252d89da2741d8","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.5.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.5.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.5.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.5.0-next.1590039255.4efeeaad000eb1ac7e9b2442cf252d89da2741d8","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-i+KM2JbYhYPi5P57AQ6/nLzE9ZtIgToBcfgvQ0U1dNVa4mcvi1dpLXILy4bFwFXSSK9HdAvOHRQQdTO6Qi28mA==","shasum":"71d6019a6ed3db57159ddc6efa3933694cb2ec73","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.5.0-next.1590039255.4efeeaad000eb1ac7e9b2442cf252d89da2741d8.tgz","fileCount":13,"unpackedSize":43235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexhLZCRA9TVsSAnZWagAAV1AP/0s+nNeIWaDLuGlR1WeM\nSZElRVtYLGG2W2xYiP8Vk9ek45eBtvBaqZh8vDzr4+57TH+ga0l9RNKUewmI\ntZup9V9bQ1zwLT9muMnBHx8qCGHzznzZuOj7R7yraNeC3Cj2b3feotppJIp2\nC2xN/zznUDF9Pdfa9icAzD0NjXjpv9I9x3iSRgLZTfcaAj7sXW9uTxgCHhZa\njwF9rgwCtGTvFoVoGE+rarE1XgDPuBP90IbNyEPRQcw++hps9be4wfrLMXWh\nWxBD/9voZ4/ZNloYrtd21I3dBil00GNiHAxX/YhleTEUwPlGJw0GI8W8snWq\nMdKKPx2lIRDVkh4qQ1tosWJ1kRyJHxxFlZGOM8WbrHJSIi2xdydjfSr5pHpn\ndVPX5hWTW/EmKI8K+Vub0gVDvG6UZU/i4L6dmh2C+4qdAUXUr4FfE0miXl7a\nXbFfVX1JShfR1wg1ubFyly9kfoRFG9Hg0p7Ly3l3sE3gx9MSRJ8hPPj3fAYQ\nK3Ei/IZoyTqNPbhIXomDDDZT/7BEMSUa45xeDIZB6QDshyWk8diGkD4k16Vd\naf4igi1sSe5vz1occewI4D07VrGSzNVBDJSTL8Kyj/PljrTc/Vybrpk3vkm8\nkRgwzY6IQM9+cI/D9kv+jnrAiwmGUEaizOEwuiAzPNtpVXQyv4Z3OzUV7HoR\nlgIo\r\n=evle\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5BhQDkvSXA9Pj/a0RfPNsi9DgaOwq+cXJDCFN/pGhqAiEAoDGk1OIZEPRTuPW/lE7XB3EVDQd6G/00Vk4L+6YIfXk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.5.0-next.1590039255.4efeeaad000eb1ac7e9b2442cf252d89da2741d8_1590039256700_0.6506880405701374"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.5.0":{"name":"githubauthreq","version":"5.5.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.6.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.5.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.1.0","prettier":"^2.0.5","projectz":"^2.2.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.0.0","valid-module":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"4efeeaad000eb1ac7e9b2442cf252d89da2741d8","_id":"githubauthreq@5.5.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-asTMKkL4nyWml1jmt0ujoo2u8T55b5X4OhYnwLmlSiSrGa2twWpGF6//E/BJc+vXMLMxPINbr7hy6+C4RP/kyQ==","shasum":"6c658f7b4dcb0eda3ab945b7d9357286accf1458","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.5.0.tgz","fileCount":13,"unpackedSize":43178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexhM0CRA9TVsSAnZWagAAOU4P/iJuvsa/18KAf/xg6dbe\nWehd7LpzpbTdQ1VFS3HMF9+xbdXlWnLyJ68hJflJzBJ+ydIqWKdeAAmdGJNC\n8PuC9sT9q3cSLnBzDN1FT9OZFdVzYaqmGwZVlC2qzmfFpYD90fVPPb8c8lYG\n+yHLlJIXan3g3dL7VAkS05LE64IQHt9CsYTWESZWiVDldCUFMWdkdGPEmTjO\nkthrVfllSxhoXzlR6uMCve5nBq7olXypsCSxbS/gvtcDm30vONJZkBJeXb8c\nN63Iz1CXv8RH7eXTNzE18BiEQDXxZAq6CePwSDyi2H6b0o39excUF//6ea7N\nv8X1twFUZfiyegpJukL6p2iXihvHxWPq9cBn1xXWmZN/d2FJpXKTFOEm7l85\n5SuyuB2nyvxqJJ6I0aS+ltIOswZ0S7FKerrUfrFNMIWljjD/D4NgaN8ks6Ml\nMHkd99f1ZpTduIb0rTlIGH+04WvpTlcT7Bh4jh4i8pFe7k6HtcGGljcHrLqE\n1s7pkb/2W7WQ/snf9w+Z4ZxUaCiSIb1R7oSIPZNIUGAfwaoOGHuwTz5XSLvy\nIQDGWRGvvuIASQeMgd0ZTLRp9GaZBszV1h2NSofmx/PY5eoZwJoDYcvjCGNA\nw7AlZQPwDDyfr2uJjLtfW/gXzCVl1uAb8n0Wqz7EQ+SsdNv6NNE7Bp/AURu+\nBfWy\r\n=p02j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfrAXCZtd2/B+W1+sY39OmL/y1jM+Fw0h1iJGKYjYuSAiBJDXzrbV4gNytFcn6pjJZV6ojm/jbGf5Q4W7KRru8e0g=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.5.0_1590039347817_0.07468962446815053"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.6.0-next.1590075839.46ae9120dfb19e535447a1d2e6bb09fa23605e81":{"name":"githubauthreq","version":"5.6.0-next.1590075839.46ae9120dfb19e535447a1d2e6bb09fa23605e81","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.3.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.7.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.6.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.2.0","prettier":"^2.0.5","projectz":"^2.3.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.1.0","valid-module":"^1.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"46ae9120dfb19e535447a1d2e6bb09fa23605e81","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.6.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.6.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.6.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.6.0-next.1590075839.46ae9120dfb19e535447a1d2e6bb09fa23605e81","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-sKp/jAQmRkj0TNxM+e6lyWy+HApY28z6WMcF3RC7ilg3mNKcfFpHkSO779krD1lvDbq7kg7cT/Q42YvYKuaACw==","shasum":"b493f6746a323197a731a3892b80c6d24eafeae9","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.6.0-next.1590075839.46ae9120dfb19e535447a1d2e6bb09fa23605e81.tgz","fileCount":13,"unpackedSize":43428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqHBCRA9TVsSAnZWagAAJB0P/1aPBZEv4A8h8Yb86oro\nPOaoenKxHCjdpETm0JQXY23HW2Z37BbyhBjdXAgYs/vTCy7+QliGQ8o28KEy\n8DV+uWRTZ3zyd0ugel4dwEf4GT/Rk3lSd6nrEI8uFoDDa34fa4+cO7E5EUP/\n0TultqR5oe3xf9HSKtFo3hLjnrC20xtYs80/qY84P5YQOorb3/1a+WdmBXZH\nL5TUgUTzbZ0u2PDDUIj8GcJO+GeEQocXIOFUoWgbKpSUVHuURIVp3xFwrMzI\nnm0PfPgozHUKmvxecaV6gxixMYp3YrnXinQUEyjgoY30PQVn+VXKuTxDI5Q0\nOV/va6sJYyKq5Slv57YNqz7NCikevwgDA4WwM6cFKBqgjeMOKVu7ey+6wepu\nrOe2IC+PUcCiIXlvwD+ep+dFIBCdkEXIECElNrdRAuZqAG+5oAUH5cjYq1wm\nUCOKCZEmhAF7+Gpalr7Qb7/VIpsyWZowO+IVr7tjZah7XSqD8cUfoNvLhUwX\nKpLgkYM96POGTxXEGwgMgtn+R+uX7cQ0G36PLaVSllJqst7bIxreHiFkrzLk\nT0UTBqa5t+M5nziCZnwHUmbmxPjZztFLm58FA/EIvKeQNuh8e3Ya5lDDIDi0\nUy78ZFRmzwtoIScGbZTPXWxVxQCwg56cdSffIzEVNltMoHXaaZPEGup41jFn\nzqBc\r\n=XR5/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAXKk/ioE42HfzZb68bzzqz49/9MYGgyWI2JamS6OePAiEA3iC1QP1nbUdgPKalKzRqcLdbjCwY4hHrZq5ic4pwj44="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.6.0-next.1590075839.46ae9120dfb19e535447a1d2e6bb09fa23605e81_1590075841455_0.33240461061954774"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.6.0":{"name":"githubauthreq","version":"5.6.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.3.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.7.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","assert-helpers":"^6.6.0","cross-fetch":"^3.0.4","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.2.0","prettier":"^2.0.5","projectz":"^2.3.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.3","valid-directory":"^2.1.0","valid-module":"^1.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"46ae9120dfb19e535447a1d2e6bb09fa23605e81","_id":"githubauthreq@5.6.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-oRevnXhVXmvgDXS/GFxYpZ+2TdQudgeXmNYPPqlK6T/ykj7biR3kEOwknf7W5xHcVZFvISDXivHsd96ROlYOHg==","shasum":"bd2444e41fbc09e83ce0f698747d4f7cc166426c","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.6.0.tgz","fileCount":13,"unpackedSize":43371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqIXCRA9TVsSAnZWagAAFc4P/RjeJKlE6gEgWCpRxWLW\nwkL/+b+kYrVzx/ZBVbOKL5VPzKDfLinwsjTqUouaocB3grYpwGCpH49sutRx\nab+xnT97RRkJBLrd2IuZjH//HPrDOl9mejqVHB7WRa6PaUFFAtdvLLOGGQlu\nu1kmFHlXZBd3O2+OsatseXoAfRP4FhToNO2bge4/ntGIya0WSYAvQ3tkeIxg\nj7MwEfoxLx6OkEiGKaqNVQl2cJmdtlbhVcy4f8qjYEqbDEX5oChr5vKYIH30\nGM3y/Xcr74KDnRqY03YTahKSZ27RqfCISzNq+gtuAEwJxhA4zDo+QIlhNujc\nqYVWRnasgwB0YbnV82frfxB8DLdx3Df7iH/xJ2kflN0q4tPb25tZXWCnQ6Zd\nuVTCBc9SPRU1pCBGsnIykqnQ366qRHXPSmjMMeUfpbiNjxZsYKrWtueRfXY0\nGEY9zToyyX4pQAA/W9ww7wsfUamFuAGRI+qABeKZXHnV+wFUcM4zj+8DndJZ\n8SIqVJpTB364fW/ztaKsL7YymmEN2cr6pvBX+iF916US+2Ln1p5a9fo+ruIK\nrA5Ls5Eg4IqlCTjiq1BJer1p3yPS+uIlB4gs1TJDXeEPWinSYZtw/5cBrC6K\ndqP0LrKtY7IpcZvndXRi8O4E1yPdNd4op+aXVC01L9ab1N10Gkh79fXlWLJX\nk9d2\r\n=BVHI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXza4Sb/L17IaJbG/WSzd15B9DnV7/DWI9FkiPqhSMWAiEAtKPb6mYMsSa3UfxYXE9hzxJowfn43iHOcMrbt6FrQSU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.6.0_1590075926938_0.01976418288503967"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.7.0-next.1591779542.04bc91c0fc1e37ea81d83e07429bd85a1b96418d":{"name":"githubauthreq","version":"5.7.0-next.1591779542.04bc91c0fc1e37ea81d83e07429bd85a1b96418d","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.4.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","cross-fetch":"^3.0.4","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","make-deno-edition":"^0.1.2","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0","valid-module":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"04bc91c0fc1e37ea81d83e07429bd85a1b96418d","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.7.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.7.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.7.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.7.0-next.1591779542.04bc91c0fc1e37ea81d83e07429bd85a1b96418d","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9tQJzoKVD491df1MEXeyJWmegthC12joGpC7mPOKXA/1aHz/7ng4058VdSgdt+xgyP2QgJgbET6vCA4UoeNEvA==","shasum":"4c08beacdfb747d4bdba64c0db5a37184dbc9579","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.7.0-next.1591779542.04bc91c0fc1e37ea81d83e07429bd85a1b96418d.tgz","fileCount":13,"unpackedSize":43738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KDaCRA9TVsSAnZWagAAx3wP/17wQ/Xex7OcbrxOi2GA\nIdvA+z0RYMVgMdGJB8ht5h8WdsY38weQR9It0kOaCT5FEFvNJqIF8PNLfQx5\nKGkQx8i63D9ga9ldpzIY1Hqsy+m46hy8zF1FHule6k/8S07ItpGTHeo06qU5\nnPbNIi9TAdZQS2MQSYmo/iSnU5r+fGuehzK+1BKauMhH90bTH/7YFWGvI8Gi\nlWueHrz87qFs6unW/BdxIBEHp7nFO0wmY1zOUyhxPu6nmL4LxrHxx/RFS60p\n0yb5da2GVFaz0mnQ3J0ZznESP4I7wQXyhbJK57O1cl9Tt4CBSFA4kleGyI7P\nAPtiNBw6vSGpLidVw1MqjKykdrApsNMJ2QiukT2r7G/OebMhFHUBX40bV+hS\nshd304jFHdWCWs/sq4+MRp5Ko7jfX501K4aHdVkU66Hky92YmUN8imaE7MVm\no0QEQDeN3HoptTFo1eLPfyGN5o9m5DlIzms8CEV6qmi6LPggXgSnptmE/cF9\n26ZL7P5e8/CtqUrqZFJF46vUGlbKvrad9uCDQnCo1ss9Mm6NeVmY607ky/bS\nDPgzcCfDQXBVk2v6+Ej+r1ajzjhxM4KgKAJI5OJYeIHdaDPvsvwjiLqCILRK\npZ5WINjKfBM3+Z7zq7LmmKz1Ijnp9BA2TWIQGKAlRfeGG2ZG2hr5wbSfvNuM\nlyCJ\r\n=XiAh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDT7HTcZNLV9uxiTWjdGBIBO4U9wyd00jkGWkEiEf7uUAiEA9OsJIc8HJYGok/Zp9t/N7FE5PduaoKM4YAJLculWKSw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.7.0-next.1591779542.04bc91c0fc1e37ea81d83e07429bd85a1b96418d_1591779546043_0.7774958285952633"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.7.0":{"name":"githubauthreq","version":"5.7.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.4.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.8.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.7.0","cross-fetch":"^3.0.4","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.3.0","make-deno-edition":"^0.1.2","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.2.0","valid-module":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"04bc91c0fc1e37ea81d83e07429bd85a1b96418d","_id":"githubauthreq@5.7.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Jqn3AKY8yUiIrxyA/GQV7/tS5K//t8d3jxs65ElWbTEskzed/us5TgM3lowhHh36WW1dUDj/W75J5kN9Uny3Nw==","shasum":"92cfd62044a043f364ad65043da6a1c8f512dd59","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.7.0.tgz","fileCount":13,"unpackedSize":43681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KEsCRA9TVsSAnZWagAAKpcP/0c2mgNDW13pIw3lPM3s\nlp8+h3LJySIiOOVnZLwJOXzd0jeYgMtMJ4y9zozxEUUtJh6ktG87XTQtgoj6\nrnpw8eTPfv9Onx4oBo5cI6zR64SPhuct0YcS7iUcFw0qjKjaWjAetY6Gv3Lw\nseYnokvFdNN3i9mG2QL3HDWsD9T6eQiKhwMMqG1BNrDLfxGkbuKhYm82Ybh8\nOEhwX6lFc8gGI/kfKC9tdy7kLPXi9Ib7roe4+TYi1bJEy9GrGzEpJ8HO6mQE\nUUFQE+21nci9puJkxR7TKIiivSwLHQOjKQrX1xPHRu42TBxpatlcnTwRsGHW\nwy59ETKbnVEUEMa4+4OtTBOKzQZvXlDiA6lBoNqNRuzLV51BHqA51dpZJMqU\nylh0iGdSzY89yhhTfe2uM71W6axdBpobY5nIrWM32T5cJLiIpfIAkj8PGMKx\n8cJXFjzY4UzeyYPVteETTo1Y5hiXJ6uuf0yQyT7alphmbpFr6GKMCzN2bV7M\nWIMe14OS++ZGSOEirY9ZQgjFkx5f0vUme5SHuJv9cRaP1susPFpXEZGflxW3\n8fZzF6MxJnNY+DNG+JE/rm3PDVjYZM7yFgGbpjnvMrm+94yYYA4JfDYeXFoC\nB7+eMYUUIyqbvjNtB3fyWaSbteEfkt7n4p1BQ4CR5uxbk7GCYJ7+YmVfC5po\nw2Bz\r\n=l9zu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSqKpuPTSaGxX1h0clHpOZVPP3k9xSEzxfTRiEnP5DAwIhAPW7g8t6rIhk6UeLZBDtz6eFjRd5iqYoKIKp5VJ7ir+r"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.7.0_1591779627959_0.9332619975813945"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.8.0-next.1591796659.eadcabee78837342bb3dd02f05e9c303238999b4":{"name":"githubauthreq","version":"5.8.0-next.1591796659.eadcabee78837342bb3dd02f05e9c303238999b4","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.5.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","cross-fetch":"^3.0.4","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","make-deno-edition":"^0.2.2","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0","valid-module":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"eadcabee78837342bb3dd02f05e9c303238999b4","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.8.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.8.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.8.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.8.0-next.1591796659.eadcabee78837342bb3dd02f05e9c303238999b4","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-i2AexlaGgvJaEasb8xqc1amIfuW1m+tJ0VHENchwhnrLtSmaFGlXAxB91rFLQBkAMllCK/oQOgt/7DGLFykugg==","shasum":"22a340eced54f95882533f097189c2f6149038dc","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.8.0-next.1591796659.eadcabee78837342bb3dd02f05e9c303238999b4.tgz","fileCount":13,"unpackedSize":43932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OO1CRA9TVsSAnZWagAAWpgP/3Q4pGVPwWrjrI0/Fgxf\nIEwkXfQQAhDkeGpTcaMlzxjHlBcM0ezCpne8hJle71YZI+JY0lKRituWpUkK\nDjsfAd7JSmuU4oSHQLHYDtlYxhXDy8yVxUv4FzEbSsTsf5BDzBR5UIdyiXqX\nGXoSW2iCFa5SlH4fStjSy1cvsg+9iq2ky8PIQ5ZRrLeEXUPiSTBN6PC5RHS0\nS7rSaeHSg/hI9wvIZrT0//OQSFouQNVQPjFIZuMIYwUhziQRVQOVsc1gmopo\ncn+XxC1lVPc4V1xQxRarD1s7RbhRwAQqCHrhNiHJy6VLq5vo124+l2w6EBBW\n0ySlyKZYfHMwOemoR+kVo/2B3j1f5S5rxl0AsmHjZCGanhMm5NM7jgJa9aC3\nIFDrjawA83FJVIOUYo02pDwesxUHDWeYluIyz660tej14LW4wjZ7vOIYbZ/E\n/hF9DAUqEMidfUq8cBKR1OtMxfkCd1eeGVZ6ejQp8lYFxDhDBgCcPTF+/I1Z\npmGHPypP3wcLauKP1jXy/HQAjX5IIt6hebwHITjfBZZvYCtfcYfX1iUcbOq7\nHVh8YT+bsih9fCeL+OYV9zaXqMOEKlCCwmcKsKX7lhqrRO81XrLKwhDCPUnX\nwMum1yyyh3PA9r6x1FLB4B47inbX1yBLD9OZLcb8LyfmcYW5A/8OD5v4Pv/a\nNd0I\r\n=L7pL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpvv/WwMr5d58NIjWfDpe0XAMhAKkoFaME73310QhTiAiEAlkHizhvhKrEeUznjo28ZZzz6EEqvt6XI3iW8aZihbTk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.8.0-next.1591796659.eadcabee78837342bb3dd02f05e9c303238999b4_1591796660705_0.6109523862202118"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.8.0":{"name":"githubauthreq","version":"5.8.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.5.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.2.0","@typescript-eslint/parser":"^3.2.0","assert-helpers":"^6.8.0","cross-fetch":"^3.0.4","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","kava":"^5.4.0","make-deno-edition":"^0.2.2","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.3.0","valid-module":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"eadcabee78837342bb3dd02f05e9c303238999b4","_id":"githubauthreq@5.8.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-lNsrXNphqswavMu6VqeELmRTvvJeHmCO5CamayODwCSBMM/QePJB8fXu+c2a4Qey61oEd98jO9F3T1ZVbo98oQ==","shasum":"e6f55e794520efbc7a1ec010067c4c2e0df35ba3","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.8.0.tgz","fileCount":13,"unpackedSize":43875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OQKCRA9TVsSAnZWagAAhrwP/j1YoIkJ4u5uBtCcLwNK\n/SWudtIRzEG6/QBjKGdv8KIN40Wkk1+FRNhxxj6CNctEgNlz/pcTxI6iUMTn\nqDCJq91kVdxH3SlQ/Ii8OkAb7AVar5mLiyDFpcNC3JyORO/1ofFZErBfpSi9\n++kFmaduRkeqkCpLrPuPwOJzdJE32Ln3bedvMmeGILA86+mnfqAXkPC0hUuz\ntT0fVi+D7zwIXwOQJT8QqGzhqxNL8lQfq7Y0AFBsCvnyJJyJRd+KAOXl555/\nfA+dfL242XBCf0AlaBNdohvYmneM0koKoVRew8G/fPgVIYnqAhNYgsRYZ3Ww\nn+DapTr8B1me4eyUkNbElHua1LAukOOsEXUeV8Dk0gSLwvWtmXbJP57kQ1Mh\nlGXfZCJw/yIhO8HVsfQwilseHmlIAj/PA4rIMZeXX8wQ5S+VYw+dznIpyXGi\nRgwV07dA6T6PfCThrwGm+XFZiGoo8qgPzDPMV33zanwraJiGm7p1fFgLSnce\n+vjST5/GLYf6SgvcY416dTJ0NapkjJ6uy2IIYrMhriFL8b9bmewV6xp5ZWYy\nHqnPT13YJybgQarvqTpO1kTwF6KDSharE5KSCacWC/gbQHyc5pezNkVdvXB8\nmQPONye7PArhcd2S0cknwvPqiq/UpPlEq5eTcjO8tha/VAE7vCTddOM6uEG6\nUs2Q\r\n=/huv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvpCXVyBydkz1IG00v1ReogSgN/Uc/vxbx4Ju3TjQNngIhALSIGyeJQQ/RmeTilpZtfqgZUXEC5vej/nDjpdQzw4xT"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.8.0_1591796745508_0.6998683083032049"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.9.0-next.1592614424.d425a03021cd3cea7ef7572e0628718bc371107b":{"name":"githubauthreq","version":"5.9.0-next.1592614424.d425a03021cd3cea7ef7572e0628718bc371107b","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"cross-fetch":"^3.0.5","editions":"^3.7.0","simplytyped":"^3.3.0","@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.8.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","cross-fetch":"^3.0.5","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.8.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d425a03021cd3cea7ef7572e0628718bc371107b","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.9.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.9.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.9.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.9.0-next.1592614424.d425a03021cd3cea7ef7572e0628718bc371107b","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-bmmE8Y3+i+dnHtFHWdN9pqJ1shdO/EfCjWutTJUhT6sj08H6UN52ish8k2yuYS2Q+6xWHD9Gb4mYOy33IxUlAA==","shasum":"b41a8ddac53e7ac0e64f3de86fc912ad0407e699","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.9.0-next.1592614424.d425a03021cd3cea7ef7572e0628718bc371107b.tgz","fileCount":12,"unpackedSize":44453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7V4aCRA9TVsSAnZWagAAhYMP/iPQxTyARC0AAyJvLQnK\nSdRU+HJQxJLw9+WXxQOYPyUpFABV8UscRXAvWN0snJFZ6pKxZqIf4FgOrbf2\nY56NxrBCBPmvvPvWeDJFEK+BcmQUwz9dt/EVR2y6UgLEydXXcecieUJwl5Ra\nCm/gkHL2b/vIeZ4echKsY84hv1jaMgH3Im/esyMLlfPzfkD/om3+9dDJVkLF\n0jCdPG67xn43uU3BQUr9BLDM047iAzg8f0xw1uXzWZGDboKFKxR9sHQmuHY4\ng1UfsfWkjyd/4oPN7D7rtL6Du82FSPu8G4d5f4VVDqrKILhiiLCTjMWMALYH\nHWvnqQMbjPk8sbby5u/7vQrWXZjiEIDkAquKX18Qa52Qo1clk92uqHdPpR88\n45JthkmaRWtSVveXBJhc/hSHob3VBfazmzdo6AoCxITo8/MlbYEzBOL8pczm\nKX1ekID9W8RBtKe1GTlgmGo3yMfL1MP3GEVMZ8+1aBwO5wKjeywKE79gNZaB\n5Q9DA2Ge7SWDlYT8+eV4bPMyHDQTPGhVGIa5JY+DLH8B5ZLpe75tcfIpiuoq\nKbHHxYJwi4HYvxyr3gyYl4OsFbwvXUZbg30KwEr/5jafP9vIhRlZhI/d1iMu\nK99T9jPT8IVscK4mSCgVkdPzRo8QVCnMXZ1pi4CIsdg+UlgA0oMFmyq8C5P0\nSFAy\r\n=IOzf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpTu0MZoaIRozBvp5ZrIK9rvB4KAGQgLbOcwS7lmwgrAIge7RV3Y7SnT8fNwYVPrIqTC5EtPsyJzWN/K7YTbJUwEM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.9.0-next.1592614424.d425a03021cd3cea7ef7572e0628718bc371107b_1592614425986_0.5528909946626384"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.9.0":{"name":"githubauthreq","version":"5.9.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"cross-fetch":"^3.0.5","editions":"^3.7.0","simplytyped":"^3.3.0","@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.8.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"devDependencies":{"@bevry/update-contributors":"^1.10.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.10.0","cross-fetch":"^3.0.5","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.5.0","make-deno-edition":"^0.8.0","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.4.0","valid-module":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d425a03021cd3cea7ef7572e0628718bc371107b","_id":"githubauthreq@5.9.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-bMSHegBlX0/dsO8bBu/aCVWAfzlJxmJNMCBtwmCVbd5K310CZHahDluJQHa3A9NXeijqFYWsIBM1TrvAQSe9vw==","shasum":"14ec3993f4e38aac6de1fa481bf7f5bee4d26db3","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.9.0.tgz","fileCount":12,"unpackedSize":44396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7V5gCRA9TVsSAnZWagAA7csP/0yotpjJQ8bdmCYfa6F3\nmuEtytXAyMdp7VAtFHdiOh7PA+0EC0P4ZjPymf3snjDp0aXGHxmQwr8L9i8e\n2e1Pka+dehkbmyL1TVauetvG+5IR3R587XQHqCv0xXrhJJ6JIgZobwtkwANJ\nyDLZLUT7e0jiyXRdtUPQ2V5NpTf8iwFJk1nMsKq46si4uCEhyWTysAzes8Xw\nkG+vyQ8uHTsoZhyEkLOKyBcG0fJmWdqCzi8u2NEzm0xNk0JYZKhvYMnvrmfT\nDDCxLj75J3isG/as0ntv/ZGPvLA6rict7dsHpV84X+/vFwwK3hGd9wfpNciC\nIai9yHP5e6twPvZ0aqijGngESvBo4BoYTiqkAK0HOT1qw3t1UwTg90r4bU0v\nJjuoOXden9YzoI3V/nVsfpAmDABJ4XscSBMiiB39c8JsIW/aGtGymZfzBI8G\nF45s2AcX2BOI86/HTdcqprwws97veG73Kz7PYovdtVK4S24qLlkakOEJ5tOF\nZLrr+Jqk1YLgA4TqqJ9+hEEz3HJlhojRRfBOvhdlsugUClTKw0p7SobC8hGT\nWBCtYmCRElr9pNm+Q7M2+XKRtQBjtTDygHLvZFEghrIWJwTRRuP6lfD4/hgr\n9HjW8ptZ4oL2ztUFvcAl3WX2aWzjDdCBs/qyS3OkyE/a/B0QZrTTESOHTzkc\n4QLi\r\n=ERbd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClD0bt50QKquAVXeNhagXdS+/pbzqivdoRyr9yUGHongIhAIBEroBj4yHxAwLxAHtLBHGD/DCN5D4qieddY2Sgi3tQ"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.9.0_1592614495530_0.8519546477415354"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.10.0-next.1592694878.bf11670b75a96eafa7e9db76e9436aa49cc5d6ca":{"name":"githubauthreq","version":"5.10.0-next.1592694878.bf11670b75a96eafa7e9db76e9436aa49cc5d6ca","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"3.5.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"6.8.0","cross-fetch":"^3.0.4","eslint":"^7.3.0","eslint-config-bevry":"3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"5.4.0","make-deno-edition":"0.9.1","prettier":"^2.0.5","projectz":"2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"2.2.0","valid-module":"1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"bf11670b75a96eafa7e9db76e9436aa49cc5d6ca","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.10.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.10.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.10.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.10.0-next.1592694878.bf11670b75a96eafa7e9db76e9436aa49cc5d6ca","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-X0tO40w4xiBebWXjjo+ENvkhSREEms37IiQQoHzi5t769TGW0I74dgoa4JXgqKWqurGiP3xT2Bc0S0rmq5piCQ==","shasum":"7ddcfcb83223c517b68f595822cba113e749f989","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.10.0-next.1592694878.bf11670b75a96eafa7e9db76e9436aa49cc5d6ca.tgz","fileCount":12,"unpackedSize":44104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7phgCRA9TVsSAnZWagAAGOUP/33ALfWs247YOevuAe3Z\nR7m9E2LK7efnUNP9Js+0zM7PFRe6ba1GfpSoSk5V6iKv9r/4mFsQeoBRGz+X\n5W+3sAHYrxgyN/yxar1wJkL6OeTiT3mYdQHWLbncYBfSXcfJEgoi3ZHoAZDs\n/niOG/gmWfyZtRmu3YUrE2dAWaJ96n0XI8uSR+hSNXZCahvs8BOwAhTNhfUE\nyFN/f1EdhvAftJM/n4Z7D1k+M/N5vADe95pPzWNGemyuOu37piEYdL789CSm\nAdIZxgN67HWus6hF0XtONI8eOv8Ew5LXee8yDn9aH0ONfq55FYQY/9ZxmhZB\nWZPEBsHXxWL77HsIemHiK0JDUqei0ajSVbAoGrC6PcFKNBDtHaWX/wDdv9oP\nILK/SSqpiRCQQHxy4k998vANpAfrwVanwwcIglfU+Ocm/nUidtSXubxuLXK2\nCGwpcV7QpPVahHuu2cldBDmYeCI3caPn8/qmNQU6bn1TGEn82sy423j7MrDU\nvcliUjALCeEVf3hzOq4RUQX646MvTfqA3fStwIY3UlCEEaRstZeY5Qbpglhg\nYsn+0J1LN5RCYMzghSWF059ptA5uUc7SkHAE8uKR29xxN+vgFejDWaz6v2to\n4tNZ7jEnXPWmFzYK2OEfZT4bT852jsNK38pvy1nvSn4/wC8Xls62n7PIPx2t\nq2Ju\r\n=oNWt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1fwZaAaagcymYte3OK9XMVuycGTnWWWDzJo+manrZXAiAJL2rnIzX3Sk7jvS/36P5LZWG0q9W2QSDnaXeH8xZpwA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.10.0-next.1592694878.bf11670b75a96eafa7e9db76e9436aa49cc5d6ca_1592694879848_0.3272132963786629"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.10.0":{"name":"githubauthreq","version":"5.10.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"3.5.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"6.8.0","cross-fetch":"^3.0.4","eslint":"^7.3.0","eslint-config-bevry":"3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"5.4.0","make-deno-edition":"0.9.1","prettier":"^2.0.5","projectz":"2.5.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"2.2.0","valid-module":"1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"bf11670b75a96eafa7e9db76e9436aa49cc5d6ca","_id":"githubauthreq@5.10.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-paduy1En/Pyouk7UOnvVV5ZUsoyf4Xf/bCVhznYz7VtpGsQF0MDoErwlAv2oqlsenfkIPXNPy1WS3u+ogJ2fVQ==","shasum":"5d74abb269dc27e5bb50e823b032365b33febc9a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.10.0.tgz","fileCount":12,"unpackedSize":44047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7piyCRA9TVsSAnZWagAA/roP+wb+77APKJlZShhLA6WG\nXQ4E+XAJUbLn7r0lm6Q3s1mtyxeMJglD2v570o+IU3+pWs8NxXTh/QLEBOku\n+oqqu78NTHPL6MKYOWdh4sM3jtowYXzZ6LnBEN8uipATxB7e5EdEgIjMkHko\nf9J0zK+tUwdWSz4U5eGKHMtYPlN+WLuLQpJotvAiC4lf55gTF0xCH5TSp9Vi\nR1iyTdEfKZREw4PZxiobFAMONL1SgJRqxEjuboCn5pMyK3ExeoGZ4MDos8i2\n1ZgJOM4jWGvj1Ie5odjKfhZQfsDGtqQNNr20HQc1QPRgcRSnQDtPK4TyR1m/\n7WhTzIRWfbVK7DwE+XTCwF4e7X+fGUBGGj3O4hbtGjxmWNTZ5NmylzD8Cc3W\nZWLof9wLrJG9cX9ESMmmaKeIYlXQzLbsuZmO44BHrshs5qIBtpgDHGmyI5LP\nGaehd5xdSVw062qDn3ddaPxcRJHJLIh6KsOy+lsKREizIpKn0yF08RTIYAW4\nVspIPRpC8OvKY6okJie6zODZv6m3c/0v2sDNs4XFKzWrYP3nJMDU3HBX/soW\nppSWPlIZR/3RuNExLuHgmhaiKhJ6Ou4D2DWgbQOSTWVn5ppQdTayPZtILsLm\n2tW8FwwlhGFI9PC6z2wBk7QGAEcKv3keZc+jfYx9DiQtzmoPw4Cu9kAj6IdU\nD507\r\n=Durm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEVzEziJ5Ryc8xyS0pO50R9kkVeDZli1opebsPfRws3QAiEAt+ngV0PJ6UC99TF59H9ZmteAZYwWB2Ne1rMTNWLgTWw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.10.0_1592694962168_0.26486984445149675"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.11.0-next.1592741654.c076c9a491956aca648f956a446ef33b1e33c7ca":{"name":"githubauthreq","version":"5.11.0-next.1592741654.c076c9a491956aca648f956a446ef33b1e33c7ca","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.9.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","cross-fetch":"^3.0.4","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c076c9a491956aca648f956a446ef33b1e33c7ca","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.11.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.11.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.11.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.11.0-next.1592741654.c076c9a491956aca648f956a446ef33b1e33c7ca","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-WBK9CF+8K87/X08OZFLc0DyKM2ooObbcAPw8+e0pzOsVlO5HjhpUYTX7eCHmdK2GsflrOSNz9s+Cn8UcnQGElA==","shasum":"a6dc1bbc6469cc8f17d147b19d5694b2ddc18498","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.11.0-next.1592741654.c076c9a491956aca648f956a446ef33b1e33c7ca.tgz","fileCount":12,"unpackedSize":44308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe708YCRA9TVsSAnZWagAA6vwP/RIovSgeDAMUB5JfWOar\nsmVN+j3xrnH9jPkaGP+CBHg4zwmTkJUOWDP0W5bMw3pS4Eo2NlrQGozbbhsN\nEK3344mPnSIRpIRkp1nM5UE/a/YWSfDnSUzf/0EoBM0WYuemR8VBqmdrHwKM\nXv2IiYE3rnNiHwgnT0QpAXOI9/4zN3b3u93WyXIfF6+gNEsqyjsxETNGqYET\nAnhMDInw+j1hXzmz3+gHrhCyAHwmpNifghkk2sv3W4F0I2+7n9pJNkPaFIyS\ndZ2bGYHrJiW9CFURBaXze5lqXamjmUg8qc61KcOtffKe2IxHRMhem4IJ/bg0\nlNhgSelszfTQRCzwNypaKhQVNaaovGgEYSC1VSglJpvvQ3NsxCfQPZ1a9CES\n4VqGRyCNhEO7sM6INx6diCBcaNrKM2rWl2THQ+rFUQjJGpIIjp3r+F/sx57s\nThenm9ZP1SDmzibTiT0hRc66yIPibU01ViVFUxy18t+htNAX3Xb8E5AtQhP7\n9LJVIydejg4iHXnuSKNKZlqPpEhIFKAuERoOHk9OewiTCUFaUGQD7/B/5daJ\nMC+2B02Cyqz/E5A7WbzWiYlOtaQouIBbFVT55KycHGmJVGkWw+ZIrd1KAhpE\nhRvq6hWeaTTgUZ9A4qtWrdN7lsgxpN1NMXi3JhX1CJOSomynBtNN+PseoMsy\nF7U5\r\n=GsDU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICnMMmc/qSLBkzoQyix9lExoellHnnoLY3gl8qDzUVh/AiB7V68Tj/UwsRasAMHPh5Wbfq43p+J/6r4rCRfMLpr+wA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.11.0-next.1592741654.c076c9a491956aca648f956a446ef33b1e33c7ca_1592741656075_0.6715607132252917"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.11.0":{"name":"githubauthreq","version":"5.11.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.9.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","cross-fetch":"^3.0.4","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c076c9a491956aca648f956a446ef33b1e33c7ca","_id":"githubauthreq@5.11.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-qtrq1Ff6avb8SdJhAj9278IxIVaFvUhb9kagoyO1usl2BmluW8xqLhtoKttgQNVnJxvh3iKQYyZsdswFHWz6iA==","shasum":"ee0cc179a55ee00c178228d23adc277e322876e5","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.11.0.tgz","fileCount":12,"unpackedSize":44251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe709mCRA9TVsSAnZWagAApRMP/jGKWvPepSiFr+KQfSAw\nwTvo9Hfj7QGVJdu7inEr26rkA+wfTBjsYNG4Occu7eLGJjeUUg2F+JAULK9S\nz1Z6xyU7W/jadljHRYCzZ8tpo4O6zl9D3DBL5dTb0svMqzfiTpwsQADtOjgL\nrjAEFdSG+V8S6tNfp0t/sqJTbSWl5r9fsfmViDcZTqePlQSWSQN1MW52ZHvh\nn8PCpABK/A1xxQgdXlOwE6SwiiJJTjVtFahs98TdhBOmiO/PER8kDa4Cu/7O\nKySbGpzF4+guRLU22b7YlZWieaW1nIOAWQzPoPDgMcKYGcAq9Vm5HPlEz4Kn\nA/RWSqRDv5XlCBwRsaPrG1rWkWFKBv4ETuLGK0TaBPoXwePqQ8oPHXemZZFs\nhzyqd6RZk8NmUrLatJoNq1DE+9CmwlWPS6aoBkq1LOrQybwR2wf9VsXlqHRm\nlQypWa4utC4kuqI4BZg/JGqRI5c63b00DK6EEoXbKAOThd0IUHZdwFPGsh+N\nnOzivIFP7YymKs+N8UOg21cFmBeIuBPf0AItUKH5VYIs/slG7xykvP/NVddo\n59pIyHfTb7aXnHkmnoJHFovAKRiUZHjAwxl/5Au2P6n3OmuL+k5x+UhfLLJD\nQT/3UK/3lZpCRF5HV+2V287dyIb4Etnldwu6io3BrkFmqT5RitdUwEZdssOR\nklG3\r\n=Iwzq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCarWEz0Ug8yTp/Q+5b9ikTMW6nc5+nqs79X6H6AK5M2wIgDXdv8L2Mdsr0dLwHYMXRVaXPO3SdurI2xzBE8zJJWJI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.11.0_1592741733796_0.7884677880067856"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.11.0-next.1593045876.be8f3381ec06bdd8476777a78754ce432a5210e7":{"name":"githubauthreq","version":"5.11.0-next.1593045876.be8f3381ec06bdd8476777a78754ce432a5210e7","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.9.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.9.0","@typescript-eslint/eslint-plugin":"^3.3.0","@typescript-eslint/parser":"^3.3.0","assert-helpers":"^6.8.0","cross-fetch":"^3.0.4","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.9.1","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"be8f3381ec06bdd8476777a78754ce432a5210e7","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.11.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.11.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.11.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.11.0-next.1593045876.be8f3381ec06bdd8476777a78754ce432a5210e7","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-LKFHSwhTUCwADedzpQS8hZ5eOaihd0WvxCXziLBoyt5IT6XdjB3AfxccpSgKMXKtW/rqbxA7rU0VLosbhdsqGQ==","shasum":"419bc8d31dad8cb37f72550223208fc7750614b0","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.11.0-next.1593045876.be8f3381ec06bdd8476777a78754ce432a5210e7.tgz","fileCount":12,"unpackedSize":44308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8/N2CRA9TVsSAnZWagAAA1EP/jUMLBvyXTdKvG+7R5Mi\n6ZotFUqeNLNzUmPHgYKg4iqcSYpFgyxw4A7vmU3LkoSObV/L4qeNnTBlOiGv\nyRDH/vE2MR+b0jGTKfKYh0v6dKV/yThsVVFqeAKyJsWNoHFxNzdM3XOSm6dp\nxBEfn138bUcyL4Ry6xRp5gt2peMpa3Wd/e0UPTZSflynGJuqw6vBHM/qhWba\nnEJpSaCRifFfhi6y6r61nhaZD+Hit512HEib+Vj9ee+s7PCMf2HEnM1lRLvU\nweAxAXN0Fjv3h8CfB9zYrwqjI8PBbSq0ryXkieciE+Du60mi4nZEkvMoYLq3\nlJcY6ZYfyjkHmtsDFoEL7e2EDVl1teUoeVF4rZakFLhEXoYwkPKtzuXXd1ok\neN2cx5QIduiKoY2JrZvcZmpKacLv6veSMctt8SLM9ro1P5vNYBBvUKz+W0gL\nhheBJeCz6QFKyESz2ZRVZDZf5Ihqo+DK+BKJM5xXt+mr0hshPzydPffB1F5w\nM6bo3WmKqNE+toqX+fHEDX7F+moZMUmEU20RntjvH1i4Lu0UXT1Z9oGDd08D\nxaIcbkLSbHhyHPOWRrwojl0HW+erB+0M7+IMIQcPy/mS8isZjWWayGVl53tN\njL1bvkeyYdcaF5DbZs+xrDhU8XU96+PGmWzq3OpWNz4tL9ECq83WZA93gPEn\n88ou\r\n=yKfY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDDFRRqLr0ytcyTN8N9F0weJlYpTmMTX2/rFuFc4QIXgIgW9yQlchLRcOsDMV6e7NYcMZ/o0CFRV2Jb7fQ9dKK/rA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.11.0-next.1593045876.be8f3381ec06bdd8476777a78754ce432a5210e7_1593045877591_0.8863358585087762"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.12.0-next.1593055507.33fd05f24778a4d592f51d12830bc2380f628ebb":{"name":"githubauthreq","version":"5.12.0-next.1593055507.33fd05f24778a4d592f51d12830bc2380f628ebb","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.10.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","cross-fetch":"^3.0.5","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.13.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"33fd05f24778a4d592f51d12830bc2380f628ebb","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.12.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.12.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.12.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.js</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.12.0-next.1593055507.33fd05f24778a4d592f51d12830bc2380f628ebb","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-/hILb8DVmmBMRShZw+Xi1QT5sVC6JjKDXUCexYCAe45ZIyWcNeIosvHsA015s9aWgzXrK59CE1YocTPl+UYeLg==","shasum":"9cf51d335c0f389f4eac9657c39a1756d5bf2a65","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.12.0-next.1593055507.33fd05f24778a4d592f51d12830bc2380f628ebb.tgz","fileCount":12,"unpackedSize":44510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9BkWCRA9TVsSAnZWagAAbIkP+gKBlCvl/JW7+3XxW6aU\nfpAIF18+2jTvKgkP48/zCLLylf/J1z7XK7LacJQhoorn4my1ZV4OOG6h84Z6\nYLrLI1VcSZ3VR+jsE5SJpHqFav+H4tScYi+XsBrYvEeiJia2ZZcLRqXmxvR0\nE0RrOqkQEhl7SGuVLXwtwPGf3rDE/fEDh6NtFuWrMLxzP5FOdRaXDkZ+jGXd\nSlg2aNKpGpe6LvsMAEQs+b5c3wjPBBUMuzZaQELx4pKbG5HA03z1ZPdI97Eh\nz/cikMpfDYA2w/DC9KLhLJem4eSRa3zN82VC7i5WkmTLwcb0LrGdbtS9L2yD\n6havhYfVBZ/GVlaI+EdtET3x6byIQt59ltAXQDlk58r0GKiBjFP7y2lEPPcz\nNrEcWdwXFEhaODE4Anj025I+o9drdnH7tTrng4QM8iwSOwKAVVqs/dk1z2Zq\nTAMSWxg1rOnWV6VNf3CQQb2cUh53vgJ4tOGIDRV2a7asW4Ns0YUn1UwL4566\nRI194omBMoiLQ95Y2knI0fU8gphAZXSMIF6kd8PfXTTSBWY/Y7My7unfjbs/\nK9NR6clOTLzCHBsg93EKaaJL+U8PBu/d0WJIMvMvqhuYqemZRM4QtozCNs/U\nY8diPwsxkW72/HqSDCDma5cVUqpBeDTunMbBLfhvhMGguEaMHDw/L5vXXAJs\n4nBE\r\n=MnDR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8XjC7h95l3wYdusIj8EmY1Y0yrdSx/8ZNUHvA+9R9GAIgKZ/MG6mCnAui3dmzEjY59EdeYUVzs98Xa0SATHsa8kc="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.12.0-next.1593055507.33fd05f24778a4d592f51d12830bc2380f628ebb_1593055508964_0.28358951523942255"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.12.0":{"name":"githubauthreq","version":"5.12.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}}],"types":"./compiled-types/","type":"commonjs","main":"index.js","browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.10.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.12.0","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","assert-helpers":"^6.13.0","cross-fetch":"^3.0.5","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.7.0","make-deno-edition":"^0.13.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","typedoc":"^0.17.7","typescript":"^3.9.5","valid-directory":"^2.5.0","valid-module":"^1.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"yarn run our:compile:deno && yarn run our:compile:edition-browsers && yarn run our:compile:edition-es2019 && yarn run our:compile:edition-esnext && yarn run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) )","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) )","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:module && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"33fd05f24778a4d592f51d12830bc2380f628ebb","_id":"githubauthreq@5.12.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-x2AcwgPiFq0TmS10SwasLLaAQIWFZVzxjsbkLywt8l0BfgCZLrBVXLoqLB6pkGdmcKQu8kG7BWtJHx5bPREylA==","shasum":"731e7ea9b886ede062f2cb4b02ead5c0df84a08d","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.12.0.tgz","fileCount":12,"unpackedSize":44453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9BljCRA9TVsSAnZWagAABA4QAIyPV/17ZDNZmUjP7UlE\nPUigyS840x/S1FRLQIL7bdWjzLVu7pEdF55MWCvisoFCr6OKEo1aYLEooEXs\nzECbqoiA3WjGhxYoG7WnLtpNG9uAPNpPFBQdFb0RUZWdUYqfV/eHyzyGC+E9\nTaElYH9RMozWvhAMpWbGl/A9RlptR4s6/sJl1DmloJRlylu+0dZ14VNJetqz\nvdrfOyAozPNdqJaq7eX3I+o50kjAhZJPW15lts5D1fK/WFvpneWEeSQFbDjt\nAkPMJkPlxFM2gkjbsSOaHSVEMxh5nGVUoPmcBKP3zILxRut+QBOCdJ9yMrMw\nFUKrwanHvqazQKvWobFPjbUeRkwfdU2Wy7r5FP+SElm/8cSvedV5TgtEjs7k\nn48V3Y0pzqON4AtQcy9UCEzsw+srGz8V7p20375LekyiMWbNXTfQLsa//rw9\nY3tPLhDGhLIrIwzHSHbdcq9yWRgTTeWdEuDCuuutVrap9JukAVbMsRpWEjta\njTosrfMnJug8KnqwHYlJY66birU+k3P0HnqUoBcXQdjykJ/i8OG59vVR+AT5\n8MvNIXYHo7mcPgNmjAxraDfh4hWRF2E9VkirrRmxhmPJqVTiSF818d0gEp6f\nEsIJbeipnqsDuxWSoUsMlAhFAUmRh6+lrRJrtyhMHttqESgN52U7taiDPBJp\nVFSq\r\n=dCFe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBV9jYEpmlJDZoMtKVZke5gLETGqM7D9OQhYam50Lx6GAiAmfUIE9u/TJjYEuJKLsLVgJmFeO4TPsicRglhfGk2lcQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.12.0_1593055587509_0.7882077319893481"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.13.0-next.1595336702.20a0f62a2339b14efdd0a04da4a99c82c46356a8":{"name":"githubauthreq","version":"5.13.0-next.1595336702.20a0f62a2339b14efdd0a04da4a99c82c46356a8","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.16.0","cross-fetch":"^3.0.5","editions":"^3.11.0","eslint":"^7.5.0","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"20a0f62a2339b14efdd0a04da4a99c82c46356a8","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.13.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.13.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.13.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.13.0-next.1595336702.20a0f62a2339b14efdd0a04da4a99c82c46356a8","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-+CUdaKC+LO+p8LS/Y5MfXFNq0nNqnyAD/OdItJCf3aIurgojSzH17AmGxThrqaWmHzulVUgWJ6bsE3k1MToL5g==","shasum":"7da60d75ca67244ebb17e006e933f313d4c3bd22","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.13.0-next.1595336702.20a0f62a2339b14efdd0a04da4a99c82c46356a8.tgz","fileCount":17,"unpackedSize":49221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFugACRA9TVsSAnZWagAAdqsP/06/UnQ7jFi7nNbwqlkW\n/EGqHOM2A5w45qRsANs4cWY4UM82B+lfetEN2CwwRNIW3UkfD6Lvmh09TSst\nAbRVIZUZSBakM+JV/IB4Dw9kbJzRPGu0Bdr9BD9y/KQg2j9kxwjjBFcwH96d\n3dPmeTPjvEV82xpC1xSmEZMlI9UhhqDF+CEaVVrPVogLbyhUPxSnObwDGt/z\n90kka6w5GTMIScPIPZbs9YKXBxw1aNlsi0kjzXG/DaNvfMJUAOTHBJoWy8xF\nj5nOl3BTRDW/Ws22ZnhaDgV3cGZK+Ueetb8bKMr3IXgBGGprA1yrvkNxGAsy\nDG+YI7vPCEtaSMiYEOE421YA3FeHGwklXDeaxfP892I0hQ51igZSIiVujQlP\npABEvc/HDQEA+U7ekphzGTP/gCR8cKuvTdJ6dMj92ul6M0D8npDWu3DSlhi2\neFiHh1K6SCRLUxp2ERJ5SEZZNGsDVHRggGYFVOW9ZIc4i/1+fBezxH7VG+iL\nqNJAvLTRKrOAU3ib0Cu5M57nuqOA9sKnOcmNdtey5BUYnhrpeeasfiMXN+1u\nEDEn24ClL2GRfB0p3O8qEAduqFQV2dKqzNuNc/oLFBehbLxUVgNa7210HWWl\n2E617ad6V7qR/uS7RGXvBIU1oQiv5nv8szo2Jf49HyemNIcjckAcvb5/LSYI\nZIH5\r\n=3at0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpqfWu92hCAsW12183377z6pcR//EgrK2oVmx7Eo8b9AiAb+P8kU1WgfTrgtwQ3ccfsvzawWP3IjvooLqcQjLCmmQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.13.0-next.1595336702.20a0f62a2339b14efdd0a04da4a99c82c46356a8_1595336703733_0.4871403678814541"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.13.0":{"name":"githubauthreq","version":"5.13.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.16.0","cross-fetch":"^3.0.5","editions":"^3.11.0","eslint":"^7.5.0","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"20a0f62a2339b14efdd0a04da4a99c82c46356a8","_id":"githubauthreq@5.13.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-1vZyYD1DAeHnowMCt/jM9sDb+CvvsmKTJaFBM+eDvyGPqzK91h4okKhAUfUHelgn0Z3KlDHxYg5SK1ApJIPuNg==","shasum":"6b5d9af6a7112091d4a791de12cf26dd6212c3cf","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.13.0.tgz","fileCount":17,"unpackedSize":49164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFuhXCRA9TVsSAnZWagAAK/UP/03wKR4f7eyT9f6PP3j2\nOW/783ebfrF+7Pt0vBN2KRc8Q7JFLa9fp9W5STKH1j1OxNETdG+5PQFXbYUW\nmNzEpARDW4aif+GR5+ShCSf/gUJYwJuM9RQgg27URU0hMZ4K/OmGhvv4aGUF\nG4vu9Kwtj+BvpA3c/+Epjj2nWapolMCKHqe1WWP7uTCoJRvpdMyreyS5h2VO\n5Ut6oMSjKe5ZbTbgRUiwiK7A04kNDFF2lIKIne5l4gCppHbpAoWSzlI4gUUk\n1GBwIEINTDE21XlFDNcJVvamA+YAqpyadK1PiJwtuCVIXgjCim2/5UpFaeth\n1JxJJtq0gfzEfqW2qK8ORF4ccd60tN8dAduY0jO+K4baQMheoSL0uZ84EeYg\nTC3VhTR/CemL++aHpvxL/cWUvoUNitlHu/cHoz6wM0LtysPDOfDsNX9CGKm5\n9yZ/cC9TN5Phdnoq7G6CSaBFV/C3i5YbxDi6oA2OKImbiHdbksDn8TZAaU0Z\nWpHwlmQyUqDz8BJ9ueppnC142vo+k2TKopcqH26YImzU8jGWLpTs923t5f2k\nHd7h+R9R1Dv5oVBL1XwhO62EnurrwE0mTijFQMK+zTWkh97a2snzdlTMnij7\nH89VacL+n3usmvd6v6gcHySbktPY7JM0FwaFpg/pyDm+3ZNF9vUkP+dJgwbN\nxntW\r\n=X5Xq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBCd9b46NKEbYHH2gVyoYvGBCevNqC7S3qAWJMu6XT5aAiALnBX/j3ZY7wM35PnvaEMg6NP/6U+6wOQa5RWJieSkRQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.13.0_1595336791541_0.3301758310548464"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.14.0-next.1595346637.c45d37d160a23b3a1d412197ca798f8fb7134a1a":{"name":"githubauthreq","version":"5.14.0-next.1595346637.c45d37d160a23b3a1d412197ca798f8fb7134a1a","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.17.0","cross-fetch":"^3.0.5","editions":"^3.13.0","eslint":"^7.5.0","eslint-config-bevry":"^3.16.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c45d37d160a23b3a1d412197ca798f8fb7134a1a","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.14.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.14.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.14.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.14.0-next.1595346637.c45d37d160a23b3a1d412197ca798f8fb7134a1a","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-2vgMVCoqmkN/FUaYbCE//HIbPvTZmZOt92IyobJbDhVzL6VdloHTiYgJ9VCqOOMP5WfItt+XKCiTyiZRNPpqoA==","shasum":"7f9b74db55a2a109fa9d377a40407df194d35a79","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.14.0-next.1595346637.c45d37d160a23b3a1d412197ca798f8fb7134a1a.tgz","fileCount":17,"unpackedSize":49472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFw7PCRA9TVsSAnZWagAAM8IP/RwV8odKgAojoKCNLh+y\nI6hB0ELv+jmbWfsOxsXSXhg3/tLg6nc8OyPL+eBf9Fv0x1JIZXmA5Z3CbL2w\nqGky93/pQnErcQkqGN7+3qTw+GcQwCFinLgLFzcrEeO/if9pf/1ch2bqHf2j\nDJo6buV9pExI8sPqXwcmUg8ShU/75lvsaad0Du5fm7x8YMbhZ6+ePJqA4ZQQ\nHnDTe7rrraFSp1brVCBCtLQrqq5FHqK8IZPYkg5zl201cretd4npLu+BCPo0\nvMm+irUTRYacjH0ysa4AD+TsUlpZgT10/yaZfYBixejj8NERXhNH0C8q8o6m\nMmheJTfnR2McPyNO0WU0NLapECnUuqtGSE1+sIM1nyp5RpKQawLVS+TANQJd\nRnx9wwcHEd+Zy59C+FC+DP8AM0Qj4BK+61ocfNZ3+Ry/QKBNpe/W8Xi0Rbjl\n4VurIWgTycnGctB2NmtyjuGI6VNqkLAtvAsuZxr24x2ZPusWXyijmRyfBbF/\nWAlB4J5m1NinUJOM3W241PfnEUKSHqQycgZ2vGfZhmFR5evMKxfdFkCQqpf3\n8uDIAV+EFwM22JG7nIp2p7jQM6eEHo2a4LEvyirtDtqcOs60fGECbWEVW2v/\nK8DoeCnNfVQ5YmK2EDRS8TE+NArQlT57yX0NkhwlMBvGJs5K0xMeii0Caf0o\nKZzR\r\n=xhkZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCVDg0wVNMr9k5e8N8oBGADx0NfcrUafsUgOTR9tFTowIgMm6xhlevrG3+h/rfmMsZbpcqH+hlzFNbGRUlgCEYUPQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.14.0-next.1595346637.c45d37d160a23b3a1d412197ca798f8fb7134a1a_1595346638966_0.8563834320780808"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.14.0":{"name":"githubauthreq","version":"5.14.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.17.0","cross-fetch":"^3.0.5","editions":"^3.13.0","eslint":"^7.5.0","eslint-config-bevry":"^3.16.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c45d37d160a23b3a1d412197ca798f8fb7134a1a","_id":"githubauthreq@5.14.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9okulKqmc2VNSXMZiWEag111JQwxdCS4pre5zYYcuHdmiQyss7Eshi33n9XgU6QGFf+iLNLrdpCke/wov4VhOg==","shasum":"fb19518e4f06f677785bc5e2b1e2e03f90862cf0","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.14.0.tgz","fileCount":17,"unpackedSize":49415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFw8fCRA9TVsSAnZWagAAUxkP/Rxmu38wqLMZXTlFGNlD\n9TwG5xdh1XSitf2vsT0BFjT9E/6rCdc/BJFh7U8Qh1JulvPUGyTw1mO989km\n8usWEsNti6ZZQneU3z+7tZG6AVkXC2Pb9Kjq3JUGvTDyiCMcgUOTUxFz5E8l\nvXbr33cYZhDc/qKv6rNg3eqVlpl2aJSS8bGwa5d/fFNGss18whQ/Dzkq3e1f\n4WJq0bWmJLyNgLdc0UrVSjYWofyAOnk55TXJ/Qzd+H48tcB2zESi09Sil5RK\nk5IJkSFhSeFSK7eoANMDdZOT/7xZvToB6jnlf6nsyUX9wcOmS3t9NpQgjFVV\nb2PM3RJpChkexUwieYecNE2wRB/uWjMQqfVy7G0txez4z75chKmk3anatDPb\nPowRzIqe2UneIunGvTzoN1uPh22B+8QfVPflD12MilAB0S9I+ZP54glCppp9\nsvBHRNRH2xbaF0I04RX34RYt0JKuGXLwkRAWqWDTiuIpKFqPJJp5sU16uQPw\neuSiOZqjHkL6p9sBQRo0MNuYgudL3LHZIb4tTW9Tm80pli76283z3skA0Sxf\nqlOpvUSQGceQ6nhLWs6oLgsD2idtl1BIO7b6eyUJMpL0qI8NZ/nTnfp2tcO2\n+a+MHsrjjiWxCd9mS2dpEv7cKzZavypVezErGpZLgyuIpRYe3nb1oPsbVToX\nH7z4\r\n=E+jm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6Ka3srsYRvvs5jFeWGv1IkJjQ/GJ5AQVLzrrO49F13AiBx0cPqBDjk2saWK/5Ae2rTnsECuNMBjVWiIrH86Z/M1w=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.14.0_1595346719169_0.8267169091847117"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.14.1-next.1595348599.1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c":{"name":"githubauthreq","version":"5.14.1-next.1595348599.1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.13.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.17.0","cross-fetch":"^3.0.5","eslint":"^7.5.0","eslint-config-bevry":"^3.16.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.14.1'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.14.1'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.14.1'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.14.1-next.1595348599.1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-r7Fai/RT3IQdu0BcPy3qHxY9UlkT1C4Z/ipJywD688xXFluCRF8VyMm4GDonn6oOsU81f0YufwIQ3FiCyPNVyw==","shasum":"aa30da2c10d93f8761f6ef489bd5cfc1f4090f4c","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.14.1-next.1595348599.1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c.tgz","fileCount":17,"unpackedSize":50132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFxZ4CRA9TVsSAnZWagAA8CIP/2pi5GNoBADB7cTumiJ1\nNBK458+SyLd2Iu1SMCb4KvtsZETR/C9+p5sWGWeMyZFf+NreioyO2r3kvh0P\nXtLPkCAR1RaIoEWiQBzMF7MWDCVKD7EbMyzimfeZ9mlRqC1h4KczMTDnR12g\nXd0Fo7n0DjakBCJNVQaV7HU+UUmWj8e99Z6JdoXV5bLYXbbw02Fq7Gt0aYOY\nZk5osoXF5ey+cOOA0K6XukiZlVxVvPss7RNdJSFW6TFJVJPPi0wDaeQBjEVC\n2opk4spbFEvUt9ybCJV21SBidsGb/1i8qoJf3lezMGnAPJFMLb+/onKL7Hhd\nzBJTM2PQRusfLOzIkhiVc7F6PuMhVv8u/3MXOZMtPMcEI5k3SCTp0lj7IVQw\nKgdRcStc7XDUNQPBRFP5u0VJEwt+gxbHqPsKIGx+mzu34Kc0hXaHBWoW1E58\ndAEklh7+dQioZUPwKzYUkk9vIe211uq3KGthaXRfgQWmpC1aLxjTbfvsoqhq\nIHzpMSXPsCPfvAe4QMMINYUwmuwMP1BrFYyRUaAmiaHxbvxOMKoK1OTtk6Yz\nm9M2ercolnZ7hGXrRLYUO42CmsJSAMoH9XWLUGB2yADctPO6dBUhgZlVKbpw\nR/dgrW2O/NFLaNb3BVN0h+2Nm1YIkTUEegPzmhW9AwD3FHd5APorPF4M2SUz\nioVr\r\n=Zx5F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdRelyetzzaBNYmYxpiukgKSqOFh4fAhuynuTvqs+XmAiAfuo5im2Q49JFZTeUXvJrAi4+yg+aOqZhkHdXQU6jjmQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.14.1-next.1595348599.1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c_1595348600432_0.1741846176755255"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.14.1":{"name":"githubauthreq","version":"5.14.1","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.13.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.17.0","cross-fetch":"^3.0.5","eslint":"^7.5.0","eslint-config-bevry":"^3.16.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c","_id":"githubauthreq@5.14.1","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-flQj96Ys8rfjLb6T9b2jwZ7M1C0lQYwxk6f8gAsmbk4tp3XlZ3uBpxTiXOHkX5SdNXapqt0MqcMY0qxyP2QyEA==","shasum":"c32de3957043fb4ea13f7ff37f86f7802470f6c3","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.14.1.tgz","fileCount":17,"unpackedSize":50075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFxbGCRA9TVsSAnZWagAADQQP/3jLBYkYLlsB2Q+0gssH\nOWaexHaZfRg1ujRDIwMmvBOdJs193X1l81Vd9yoYlvU2rErEw+b9BJ5tvIbs\n/Vzg8VVnXmihZoL+62pN2p8YuY23F3tTpSzYTcBPt6Cas3aO/j9z5C8WZgSW\n1f3ZQ+hZqQkWS1DH03ykQ1OmgVkon91O7ug8BOqnnou4hKZz1x5GFCiwF94V\nFXFxEw3bO6yEf9HP5iDxC8knVIjYfSXCzN97qxx0MLhKn28Q7a2wBTTQ6FLO\nUpi57ROOyO4sDsXty1rIbp1taHQAHvkXSBHUrczdwErJUPkELqVizdQ2q8u7\nKsV7ka3lehq1u6eos89w8UzJ7AxRF6wuAqziMvRCQ70LulTyzdGaaI0B9gVG\nOiYJaIv06k6Q3mDmFjRHfTBFUHAhc5CYiXaaLWrxRbxGNIstXNyXxyDGTD5i\n11d284+uNRXMtnh8FHD61gRIAKN9Jv7ODPKr50e7mnXDrEeARFWri4TDgLzP\nA+4WKOckwS2A60V7nWv4xEaqdJZaBnQ9WIaBPpEoe2mVRaweR6HGRpnG87rI\nPHkdOxgC4vKB+1sys/PKqujmNi5WnoJ0WM+Y9u5I9iMd0nrsJM1Vg8m0hkhb\nzx8a1g1b+52WrGMtaHVJW7cxpU38IVGDq1T1sC4hwnot7XS0qRNQjVGx/BhH\nQsN3\r\n=/rk1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAj9Q46nryUvL/KZA0Q8cZRrRrzJeByKFSnNIktyiTGyAiEAn0ndj+OINtJUYFFQv68tkFU3yOCU3GbhEZL7oRdJ8EE="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.14.1_1595348678223_0.33171643720291044"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.15.0-next.1595355244.0745d8d32107a982a5bfc88a8fbd1bef79c32acf":{"name":"githubauthreq","version":"5.15.0-next.1595355244.0745d8d32107a982a5bfc88a8fbd1bef79c32acf","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.14.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","cross-fetch":"^3.0.5","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"0745d8d32107a982a5bfc88a8fbd1bef79c32acf","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.15.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.15.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.15.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.15.0-next.1595355244.0745d8d32107a982a5bfc88a8fbd1bef79c32acf","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-HpryaFWnmaQWY1eUJWkNWvJcIMpEC40OOYKUy1E47fSXK+LY/tH39LbRKqHIvXlEIlCfjkFQQ/7Cory1w1MV3A==","shasum":"c1eb86e5cbb026154e203e51d7f5c727cf0e6f44","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.15.0-next.1595355244.0745d8d32107a982a5bfc88a8fbd1bef79c32acf.tgz","fileCount":17,"unpackedSize":50327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFzBuCRA9TVsSAnZWagAAK6EQAJd49ZRRoOoNP/1lM7OS\nxD97arAPCVHRxi0EoMm44cdJ6SOFkjM3nbXpNQjU0A0YmjEQdZfLqGxyam57\n6w3dxRMSHJGeU0b/kVTTrNPOBtSQBt/LorihkAET40ocb5n1N/K745luFFag\nr//cV/zkltG63reFqR8gJHEqFXwaMwEnddbqjo7H7UmGNUvBb+9LGad1T0u8\n0CbnQRYNLrdxLqRMMRFa+q8dPooAIx1kJ7euAyz7f9L3JpXZ68wwKJyPbLIQ\nXIqzHSjNpfiCHPh5ob2vzMZFAFHuYu4KcDwLTIPZzQtBTb50iEatuFUtnAWs\nVnX9ZqGTgv5FRQUTBvad0Ei7zXOorlcQ7wOAc3fzIltJYi/Ay2q7RpNZlzVn\nTP0n7QZxvLxQdOV9zSzYgDIjaZLWSyoFGLDyeCmoXSkCl78AHY2dCTyGM2Kh\nbmyCug8H2RwFsbrCFcBtuehARj3Mmbb9xOKbM6TnHq33exBWEX2TOE11Cxh6\ngpfiGZFTESwpJVt6JTZ0IqfkD+p3hN8g/G4TNBy1UAvzKBZ0MCIg7lrdHlGw\nFoZgEHnvpLNWn6wcOYuggj1P5tTB6g8OAayc1A+ddFNSCT5yENTZzzkumNlI\nUqClatZm3F9IcBIDuq/65HSGFz136bQMZoB64/XwQdzHjDDyhCkay3qy04xO\nVBxf\r\n=eTu2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJqKHtEloQWW2avtd16BMtI9MxwHZf2G46u7kEgmSY8AiEA/DtPoYKfgAWjnFxHuHU5DkxIrlJ+lpptHCo+FFtmvkk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.15.0-next.1595355244.0745d8d32107a982a5bfc88a8fbd1bef79c32acf_1595355246183_0.7753995731370367"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.15.0":{"name":"githubauthreq","version":"5.15.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.14.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.13.0","@typescript-eslint/eslint-plugin":"^3.7.0","@typescript-eslint/parser":"^3.7.0","assert-helpers":"^6.18.0","cross-fetch":"^3.0.5","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.8.0","make-deno-edition":"^0.14.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.6.0","valid-module":"^1.10.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"0745d8d32107a982a5bfc88a8fbd1bef79c32acf","_id":"githubauthreq@5.15.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-LnW5KHiCfIAy6pSGXtwwGm/7e09h1qpNsp3ChBCW4shWC/3OiAD7b55QnBmzLxpTH3NmnohKSQ+17V4hn8nESQ==","shasum":"55a102b89ea32176faf748759e32e9425884fa19","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.15.0.tgz","fileCount":17,"unpackedSize":50270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFzDECRA9TVsSAnZWagAAUSoP/3OJ4O+IIb/+iw+PW7gb\nRaQXqGInwGTaR/b7+6eMCSFdJ9gf60YaFtwgKYwi+KRp4pUtJHyUKkV0xiXU\nKvV04qeaETREcFy7xThJIgKnogkI1jtBFDBlRR9t+OYlI8dZYR0XZhr2v8S9\nO/oYOzVzcrQUfFM+FTwVOP8XBwlxrhj6XL9y2M/Fmva9MoLisohT1DzhCQXS\nI2AHXcD4d+lShEPBLTdod36aHRs+nAyc1tgEk15v7vhaIiiER1iPZlAVbckj\nucRQyN0S8twK/iyNY2XHKd/bLJO1PYu4kolKlkqmfl3Vk8hRCkStvIpn57E7\nX/b8sQ6pYuhdzj9pQP3P3+MW3hUMEScrzyhGNimRSRG9xJJGJ3NXfTKH55za\nJPKesVD4e6+fW8O+iNqELfOo1C0OPLq9VKQtzuwZBAYKMXYQ2IdpStpenHEd\nn/Vnr9V1puA7Lz/99YuPcSnruJLDRyTUv2SWEK/1BGiVS1QHYGAwLYeXFFW2\nCt6MHIkq7ZqrQqmu7VQhOgnhuuih0dUSqIGVo6JGhWtXfH1FPCUodmIxtrqU\nKkWxlhUpu76n7lE1MU8Lhq+oQVsYp5mGLKDS6qAEnTmc4lhWmxAHcAmonuNV\nyOhZ2ivuhlCNSf5liof1VF2qO7YoVtidJ2ED9Huhatil+P2wHYj5vWGY8XRc\n1oQ3\r\n=P0Q0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/iDq2XfEo46jT4C8xkkdD9X5JQhMf7OZIL448OuGM6AiEA2bEgOhwWmxLt6jr+Dl537z3H9Oa2yqgouFzfJkRaqnw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.15.0_1595355332039_0.5965477813909363"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.16.0-next.1596516858.f196a675d40a2c5cda6961925e953eafebab1ece":{"name":"githubauthreq","version":"5.16.0-next.1596516858.f196a675d40a2c5cda6961925e953eafebab1ece","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.16.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.14.0","@typescript-eslint/eslint-plugin":"^3.8.0","@typescript-eslint/parser":"^3.8.0","assert-helpers":"^6.19.0","cross-fetch":"^3.0.5","eslint":"^7.6.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","make-deno-edition":"^0.15.0","prettier":"^2.0.5","projectz":"^2.12.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.7.0","valid-module":"^1.11.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"f196a675d40a2c5cda6961925e953eafebab1ece","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.pika.dev/cdn\" title=\"100% Native ES Modules CDN\"><h3>pika</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.pika.dev/githubauthreq/^5.16.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.16.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.16.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.16.0-next.1596516858.f196a675d40a2c5cda6961925e953eafebab1ece","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-OqsXEMbG3EJXj+NKtxOuiA60cFzK2Mwi1CuOtaYTk0ba0p72puQ8wJczvMyDrKFCvJdv7D9FAcikuc8O/9lC4g==","shasum":"ab0e17a912fef233dec7c104e67a53fffccb9b1a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.16.0-next.1596516858.f196a675d40a2c5cda6961925e953eafebab1ece.tgz","fileCount":17,"unpackedSize":50523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKOn8CRA9TVsSAnZWagAAGmcP/0Qq7rKPVXSPT/Y/+bjM\nAWvfaLILlrZfPTwe4PMU1Mbnt9WAZjoOlB2frd5yZxMChBbiusjcfCqInzP3\nChPf3EwCkPnuDAolJz6qUuI2j5HT79TUh0QBYxRU8kdlkhzLlK33NwTEZ6Bf\nXFurCOkhY//n7T1G8zp6kSliwX3r3BKOfbgOQJVqFgdql5BmhSAYZ6XGsQEn\nL/K3YroPwNPX5xpbBLmmFxCtMOqzWBqt0GCfvpws/QuCyv14TcrEOQEfao3B\nW7qUh+4i/HP92ZsFUZ+Bcuj8rhedgl2G7dEnPKq10yd7zOyRA7eP+rzPWJYq\nwIUlCuncNJT4LPB+bgWP4CoWP2fkQ0OHRniQcLagfEeH+ojM0jPFJiKHzALh\nYh1G2+30JI0uYCCS79gzmKi1HlGnh2aFzcJte7Jog540KQUsEqTbNRz1nwSF\nWi3e/vpHsyu9/7iN/sO9ND1cSWcYw8fqflXDdv3O3EZUi8gAhfFfQ7UKNBrG\ngW+4Qg/4RARcLk8Z6NKNVnAAgktsWCCPgHVsExpg2vTU+7mc5NvSbGSDXH1R\nwpQRHGSreA7+7RDT4VtrXrLlD+RUGFNP8tyRXK4zehx21NxWZamCmphbqPUa\nV+ZVnP3SXrUVBPHYz+hSEJM8mJXlThvubEVQKWZB1Ars2bv1IGSJ0CuSahB7\notQV\r\n=4Lzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICa7lPi6bHCD/aHD+J+yfAtRbyNtTtyoF/MXQQr/QztWAiEArLWk6I5dQm+FtSj8l4fAB1/UIYmKIbmUDFWW6jCpThY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.16.0-next.1596516858.f196a675d40a2c5cda6961925e953eafebab1ece_1596516860139_0.14114206161140297"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.16.0":{"name":"githubauthreq","version":"5.16.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^3.16.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.14.0","@typescript-eslint/eslint-plugin":"^3.8.0","@typescript-eslint/parser":"^3.8.0","assert-helpers":"^6.19.0","cross-fetch":"^3.0.5","eslint":"^7.6.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.9.0","make-deno-edition":"^0.15.0","prettier":"^2.0.5","projectz":"^2.12.0","surge":"^0.21.6","typedoc":"^0.17.8","typescript":"^3.9.7","valid-directory":"^2.7.0","valid-module":"^1.11.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"f196a675d40a2c5cda6961925e953eafebab1ece","_id":"githubauthreq@5.16.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-mghBlpg2EzW9fEkH5dnKMo+2QlDsdZZEpCltJJkjS+DUpH3V15FmAqlEM3Z4sJAaS+IGbKKG+ylskKDVOC0CXw==","shasum":"0f4fa6c27a3821902b3bc3f78cf0f942d608379b","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.16.0.tgz","fileCount":17,"unpackedSize":50466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKOpUCRA9TVsSAnZWagAAyUgP/0avscdL2+y407vwXHTb\n8YFCnKk89fBZBzKjzTgSgb7Yfh5TsewJfBQ5aLJOaieOMlnxV9nRPXuidGt/\nApXkomuPOkzstuSjPRnLkO1Z4OgpS+1ehe5hZmTxTfafZJr/nNBsSsIpKQnE\n6tfuR9uP7nQYFAN0c+CP3pwwIvbOkoalbaw0waSkviNB6PwfP5S+IvfiX0fQ\nin7Q1buApKFFYVG65vfsu8pbUKeKbM645MZ2foJ/6e7wddVF8+qV6pFO8YO/\nU513KIv1WdoAiQq1/Rn4qZiNnN0Rq/lM87q8VU3YVxhWwvWytslEK9q/gk8F\nqFhnUOCFysoP5Db0GSK2blmwTcTHbpj5OH3SnDn8egX/UsbMGndvXpdRYoVj\n97Nl0Ou7PylHfrcplEmI/gmbQ9StDDdsKmZOlLOQKXZpuKvmPcbjPAlY3M6H\nV7Zt0S/Ttqv2fOS7v5VBV3KiFYgdBAy7YW/EL6o3EQYd9TYH1UPHT+NE2lKl\nJFbobw8Kx3oEBvX2Cip5pvA2y+sdcoVoETktQz6ewUxOY6HLK5OB8pqDtpaA\nRwhSIXqtbZ4i6mBTtPBvB7VJ0ZQK7jLV1/wOKIiCoq8ypPcXD0tEUaeyRLLG\nb6Ke3WAOOuStCkWd3T8mk301SGBGOP0HxtJQ/CT6UtD/XZU0zfc37GEvtVr1\n1hFV\r\n=asEc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2m74NQqIzobmoWDt5g3AIBESIG/dEL8Y8agL+lyD0sgIgKCX5eThQqeLAw53rBKOqggoWpdM4qa97r0RnrYAzCbk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.16.0_1596516947898_0.41056341374800276"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.17.0":{"name":"githubauthreq","version":"5.17.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","cross-fetch":"^3.0.5","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"836d905aae96b4a9cb820058bf7e56153bf708e6","_id":"githubauthreq@5.17.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-JCvphPAXW08mdvpIftgWsi0qIb8VyjWTfP6m35vzxqQGvYXcRh/lzmAhHvPLS2L7C11TiAgadOiUdF1Jr0hvJw==","shasum":"063694dbb0dbb4a0f65572b422b4bc43787d39ff","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.17.0.tgz","fileCount":18,"unpackedSize":50938,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOunBCRA9TVsSAnZWagAAvE4P/iNEFo3pEVeLk2Yi20GE\nvqPd4RauTo7H0Rmf5Oq2vMEiTANutDyj493nCw7oZPmNs2wCwWhhJYCUhuap\ntLdcFUi9Tf6W5vHIcsNiIel2jhcSONhSc7VpiAkHgb77Vp4YpDQOv6uKtBj3\nqS5R4qzlt66RGrWKEjANciFwZSxJAxstKu9WQyaJGCI7m6abXkArJMvlwZ7U\nKK1kigAOFmMxqo5jyD4rPY+mCK+g5e3l1RxNTi5pXkoBXhT/Ad4yBZVWnkcp\nIez+erJtlSHWR5v4dPYONzGmqzr+PA85F2Mo4JSMAxe8nRPfDQ7id9RSGarn\nZ4XSgCs6hHkxgiJIMEnYTgIYQ668V4Ck4SlMjHRX/1SyvpsjubhnjuBswvu1\nLpQtqXATAiuGjjINlicR5FPGLVWS0IKJDJBN9Oviz9finJK6VpPGt3+T8Ela\n48hj3x/GAtcTyveSirdXIHsHy9VT+M+19KE5hbTbYMK5wE9MiYjml7vJ5UQx\nWtGG5fu0Kn538PCKBA9dnsohvjnZ5IHMsdDEreWJp1U7aoD9Kk4/0n6NiGYY\nk+15zoGRTQePvzlP+CwC68Iv+rHw0bzHgAlCx4lN8STcv3LT74V/L9+ZT6in\nhDGmfzL/x+jO0JVlXlNrv1AivVyjHcHsRgWasCIyGpgWETAIiAQCB15fTEWH\niDzl\r\n=5FWO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAztNA4suEBMc6UmGwdoVaXzyDKxpeY+bIW4h0GbLBeSAiEApxCFHdl8Yc8qirM8fvTHWHmgCQZXjOnhCFa1mp2O3l0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.17.0_1597696448767_0.6153343535339852"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.17.0-next.1597696529.875d21abc5309cc4590a4f68a05fc280ced61a52":{"name":"githubauthreq","version":"5.17.0-next.1597696529.875d21abc5309cc4590a4f68a05fc280ced61a52","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","cross-fetch":"^3.0.5","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"875d21abc5309cc4590a4f68a05fc280ced61a52","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.17.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.17.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.17.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.17.0-next.1597696529.875d21abc5309cc4590a4f68a05fc280ced61a52","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-2/RSrezi4oGmbocoj1y1OPpQQD5usVqcUVif1sLvUybBzrZWDXc/b3QxfyKX4gmUX/5GfwDnNXR4tKJEFjb58w==","shasum":"ba2f621e0b6bb0037d17536e8f50f9a5919711f9","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.17.0-next.1597696529.875d21abc5309cc4590a4f68a05fc280ced61a52.tgz","fileCount":18,"unpackedSize":50995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOuoTCRA9TVsSAnZWagAADlQP/3Lx5gXnUtjCvNAov4Bf\nvnzYiA6RWzRYh3u5CRQaGw51qk1mRYWrIQ5lRaDvXWCLz1kfTvgaD3VeTYxY\nErIA5+34pNnYE67xLlhBPYQIBALWfzaQFTBz0ooRxXfoU3dlA07BwGGwlNds\nDY3m7KuT9I6vtCumL01b5Gh+piwcLOmh209G3RKB11ombgb4SqN4JPaKPmYL\nSBqAPnS2xeEl4F67lIlC3yYy7BOvJUThENZne+4T3u0vLVP+dW62KgpCOoHi\nblvwfPGwtdylA3BpStDfC1qORyAO37gCmxBbZrJIB6ybE7aTWo1s4zAt+sv4\nnSyuGQ9wEZj7Ar77V6jhtkdbEo8NHLi2MgmuVKemVRqlKYzflqeffLMlqzTP\nfJOhhnpPn0ySN0tXRG/aptTpJ4EVegZaIMKT1KgswHqTtK+fe9acfmlOBIe8\n2pYIpl9Yz6MoS4Xfq2B1VXwN1k5fVz+T9GlllckTA6tFNaPKW1JIbtGw+0Y/\n0foLklYySMXgFGelMrwbtSG1wIRfuHLK+fkr0YAPgnl0RwGGSYDGgBGvXOBk\nBr9NYgG3mQE1W/v3HH6+xZVJtFEks3aZOYivnytO4dKzR9tRYF9ulYeQrnDE\nj9BPC6eTFaew2FcrXxA4BYGxXPqHlHe1+I+pdkpXCQ3+Oef+jpdg2W3jFtsf\nG/cx\r\n=X1Ar\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmn0cDa5pAJdxLXPLkOP+JLPMt7CE6u1KpDs0bVHONHgIhAIfJNtBoKemOSRExmKRyF2SUELiJFYApinO232eT974O"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.17.0-next.1597696529.875d21abc5309cc4590a4f68a05fc280ced61a52_1597696530578_0.7558132190155167"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.17.0-next.1598188307.e7b1fb611a2732130df65cae86cc2d970c7a163a":{"name":"githubauthreq","version":"5.17.0-next.1598188307.e7b1fb611a2732130df65cae86cc2d970c7a163a","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^6.19.0","cross-fetch":"^3.0.5","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^3.9.7","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"e7b1fb611a2732130df65cae86cc2d970c7a163a","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.17.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.17.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.17.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.17.0-next.1598188307.e7b1fb611a2732130df65cae86cc2d970c7a163a","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-nK5eRUt4ZXZhXLstMc0F9xD5WMFJ00+DHGBZ1scNgW7M6tMj6ww9pA/JCNrIugmrvNtz9O5cug33sUiqG5kwfw==","shasum":"73984e727ad3e6ce38d4561a91ccfd50ce7243e2","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.17.0-next.1598188307.e7b1fb611a2732130df65cae86cc2d970c7a163a.tgz","fileCount":18,"unpackedSize":50995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQmsVCRA9TVsSAnZWagAANxEP/j7pxVotiZeW8UEbXSRw\nydQX4Y3uuKBNFqiwx8NeKEANjrh1Y9ArnakiuVV/aYnnrGgbu0YFYWquF74m\nxr4siKXeAHUatjCbfJMJhrzl1irlIIkXg2lIDoUXbS4aTpS+POPAJx/BHdkZ\nP1N2jQWqvs2DMiACjUweAM1bNOPmhmxIbyIPhOOs/hrKnWYNFTNK9vnhSfCj\nhloaywqy9omugWwnNlFE9lc67DoWVLDIFqfq9anIsRsksZf3Lygy7WCicqHs\nMi/zkOi01iiwFa0J7fng5ALKKVws72KQ/CxPYm+89uFw5TpfDiTft75A3H8M\nM5E1bcrppRLLejLU+ICjlj9NXqJhSOXfRW/miqNhUk4/p8JmJtSRCEVIzs7I\nSdBjJciWz7/P9A0icCjI27cdfPc1HTZsg0LAMklZVxX/jYqIKNM8cUM35P3O\nNd6Xdi3pBheycCSZ2LrRf6tGi9bnJYCg0luXG32rn6TcDSgFEmbyMv9c0WIg\n1eB/V/0fAnWnM+ZeiHro1vKFh0R8uHr4Gc0GOJtEkScRC70h2Xjy0pdJscAf\n18Dxo+4yVgpkN4eK1ZoHzBobr4drBQXZtSETqiqdNK9Y+c5YhJbUPcuQvmgv\nBjKPaf+m/SD+Cg1kcEOQQxa85PUZgWk0rJjV2JmEZbThkWGIJc7eOUqeOan1\nTeSJ\r\n=ohb2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa1JV3KXVwkvb6Hoto/nEeHzZD+3+a/MUXZNp0XNoMBQIhAO/TVFlE4Tx7hFzMMug6vqI9vqFgYnrQZ6gPFwYc6xIb"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.17.0-next.1598188307.e7b1fb611a2732130df65cae86cc2d970c7a163a_1598188308966_0.5317336455399229"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.17.0-next.1599075384.f472822f9f65b49297dc4faba599bd98821dae79":{"name":"githubauthreq","version":"5.17.0-next.1599075384.f472822f9f65b49297dc4faba599bd98821dae79","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["typescript","import"],"engines":false},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js with Import for modules","directory":"edition-node-esm","entry":"index.js","tags":["javascript","import"],"engines":{"node":true,"browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-node-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.15.0","@typescript-eslint/eslint-plugin":"^3.9.1","@typescript-eslint/parser":"^3.9.1","assert-helpers":"^7.0.1","cross-fetch":"^3.0.5","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.10.0","make-deno-edition":"^1.0.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","typedoc":"^0.18.0","typescript":"^4.0.2","valid-directory":"^3.0.0","valid-module":"^1.12.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-esnext && npm run our:compile:edition-node-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:edition-node-esm":"tsc --module ESNext --target ESNext --outDir ./edition-node-esm --project tsconfig.json && ( test ! -d edition-node-esm/source || ( mv edition-node-esm/source edition-temp && rm -Rf edition-node-esm && mv edition-temp edition-node-esm ) ) && echo '{\"type\": \"module\"}' > edition-node-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"f472822f9f65b49297dc4faba599bd98821dae79","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.17.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.17.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.17.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-node-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.17.0-next.1599075384.f472822f9f65b49297dc4faba599bd98821dae79","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-otZMUhh1Lkam7oWKL6cA1NzTNZdNp0w43R3ab41d0kpVUKQlfkhHeZPTS9CfCKX2+BQMx80fhvenq61gojf6Xw==","shasum":"519a4f61d044cf48f5cf698a605f221763e4e4b4","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.17.0-next.1599075384.f472822f9f65b49297dc4faba599bd98821dae79.tgz","fileCount":18,"unpackedSize":50994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT/Q6CRA9TVsSAnZWagAAPfIP/i5vBap08VNBKXWpryVX\nivin9q7SBLjHtalBAwdrirTclkBsglpF+jV8bRcI98g4+Jqc3SwVHJc/DS7c\nQ5GCvUz7xcbeIyuqfgyEhc/ClEAbCW5ZGdOz1Ka/uVzBMOSbhbaJNIjvn/Rd\n2lI1qABdimTO+IRAQVG7anYMqBnpreuy8TtBLeywzHAEiAPHAEqbhXt/MKE4\n1w/lTCUgvO9ebBd4i6RHPaZruxYwzYFiRXcf0x0cx/xNLJX162on/w3umtRn\nSrAZmhkmxStbcrMBP346DIzBS0j+61xsOR2uWtXpscX/3eriTb4DwVF7eYn9\nAfKsq3zQS6dzXnrE4E4IGyKCF9WaZS7W7lbzIjFi7tQuLoegurS543HkqjrF\n+Uy5aJx3/d/tI1EW6lXVXwTxgqls9n2+uC3JC9ZvosnexiDj7YAQtYVCXTyP\ngADo9FGVFfeYPx0YR8NSDrqMdEgyey7E9k4A4gF76qGN7tCPAmWZAE7E+1rW\nN/eAzTvKE9ZY6rCHFZiaZATGmxiq/S4e6RKs43g0AmAqEpSUFg/A7XOOVoCS\nGDzRaP+kl5A/ZLAK3dqu6z3YFGT7m9B2bHIi3ybJlHZZVAMnqLewXQ4yKzFy\nMHmSR+4zg2t2uUMrDscK8/Rvqut/wFJWxlxAnvAAmqq+h/DH8uEQSf5tILJ5\ntMOy\r\n=AwJt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQUrsddpYltiYJGPB3fzf+PAtKafV9ojZrh3y81+rPNAiEA/gPIhsw2oqyxkpGYBkA3/DVDSe8lvCQhx/Q7rgyxKyQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.17.0-next.1599075384.f472822f9f65b49297dc4faba599bd98821dae79_1599075385628_0.09283417595752486"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0":{"name":"githubauthreq","version":"5.18.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"8171e7de62980186faaf85f180f317aa2b341d19","_id":"githubauthreq@5.18.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HfB9e0fzQ809QejrgwEKX0BRbNORRxjAEa/Med2MczSW3/RxGTa1hB4i6jCLElMruuVhJTEBoO1ItbCC4spUyg==","shasum":"8d8a4ba07a09393241d6f05ff1cf33d4e3f15b4a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0.tgz","fileCount":18,"unpackedSize":51586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUj3sCRA9TVsSAnZWagAARdMP/1JoHGK7ndH/IqT+wy8d\nyEd21fB0/Xq7dU6+lsnO7GE+8Z3vVrw5cx6K5T1wma7HbHoiXWY5wQZ36ARj\nwmUiYaxOxXeJWTH5YLcXpeCvhmRbokDF+eBZW5vFW5F3FrOdtWTN5/1GuQ2T\n/MXh+eqPN/3sPbc6k/0FjfjKy5u0O2oqs4JBsPOTyMa4v7LLVxEgagZkwRGp\nkxJS/DfcMm7iNb+2BiFM07CyufoW5dYD6gbp4ZWzOSyJ8FZcnUrBS0CC5bbr\n3LUxaSKX8fhdvEmmAo7rPjiBY6QKBVtWgTDMGofmipvyAzsQydmP845ZBZjG\nJ4vcaQJHWlwQaMlwm6BfkTRp28r/mKhL63m8uQFDt8/BeiZ/5CR+p4gYm0fD\n9hXU/mlR/sWoY9Yo9cqY7XyKFUJTum+I7mtNBiRw4A6OaiPJILcixzmAaxCh\nnrEIDBN8FbM93Vo7jVz0fsHvncsB9Z0bZSetDL7LeN4s0iUhjy+B7em9Sb/1\ntd651P0C+aqU61QNeMIzuEO2qzCCfQIA1+ki/Fq36Ku7MmcxU4oTj39DPARX\nvTW3h5o62OydGG1d4Vi++3zDZxVkiJ3imutAqiIzAOd0tCo/gDcTwEOrizNj\nZOJ6A+OSsobjHQZPbPEr08kMWViypJVGc0BqrLUZkBNHh4uc9scO+PgsIOAk\nBnTa\r\n=AwAY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAvJEdVNZZ1gvU2XKkhwWvZhdOwko19k4JwsOt0Jntk3AiAuc4u7wUIujUWQYG4cgB0MkfXPo9iygqvN0rll9+zF4w=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0_1599225324386_0.4249174888795948"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1599225353.8171e7de62980186faaf85f180f317aa2b341d19":{"name":"githubauthreq","version":"5.18.0-next.1599225353.8171e7de62980186faaf85f180f317aa2b341d19","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"8171e7de62980186faaf85f180f317aa2b341d19","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1599225353.8171e7de62980186faaf85f180f317aa2b341d19","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-dQz7nP30QqHA93tb4qITMCa74a2/ec8UE/TIdGIU32RvKccEwzsoD4DabSavZP4pZs8Ysx6f2HCVk1dpRLwa5A==","shasum":"be26fa088133f2e4dc6cdbddef6be793823afd39","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1599225353.8171e7de62980186faaf85f180f317aa2b341d19.tgz","fileCount":18,"unpackedSize":51643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUj4LCRA9TVsSAnZWagAAZj4P/jJDT3awZNJ0/+0AzUj1\nG9lFar57TKw1xpVRBSuAHtc5qgdWwO7HDk11y27ALYVacdagsLQTRZD/3D2j\nKWsxq5S91twQ3O5EdUvirO1bL1htuIjzPGnXF4MMR9x9PRVXu1/91gGMNetW\nZaWXHriECKbuw/CMEG61LgSckp8Rie5R3238U0pBvQ0yQ+tkhcuWKpOWPSIa\noRKD+y7myVwEiQiGqDvSVhfi/G2Sb8bNgCUxQDhmJHsyOuST7t/m4eQGe9p5\n2euf5Hs+Re5A7b/lQ4zJoy5GjEgb//XqDoLFKRgPu+VvjPleAC69Qu97GFJQ\nj/G4niq9GFF95YdbOy/V+oZOlD8/0t2IGcLFh91dL2hDnDHXTQY93IjWLIjx\nn6G3cHT0/fJzjGQfNAsfha6z+NiExnW0qExuEqB7j7qRHsfVR+90CuTkmFC/\nsIqXF7lKOOPQ8LhpNt5HSpfyUaMEcLH2EHTS+AM9P+chfvMCqeMLJuKBsw93\nVacW2BovSv3T9MN9WUpDibsIKGDB5pHcmWk9FK2PBBrl4po5ee+iQfd/efbm\nfILyawSWQCRl7tin9epw1E72scZWAlQiOlw/HLA1OfDILe16wkIE5S+yKZG5\nkJSfqb/jmOtSXLxwbVtwX4FLEg4eGCD33ALO/wlVrTlI7AFl9tc/E3lAEO0e\n0v4J\r\n=JeBX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNru+y5ViBIyDxQdWubnhxM4Lu607Jw4PmR+zHeJVo1AIgVxNd1lo+x77IIrjXrLcJ5+3/PMLVjl3rlNZCJh+u5ng="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1599225353.8171e7de62980186faaf85f180f317aa2b341d19_1599225355115_0.49821934632096165"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1599225585.f15e177f2c438b2f96357f0e49c2945807b6f083":{"name":"githubauthreq","version":"5.18.0-next.1599225585.f15e177f2c438b2f96357f0e49c2945807b6f083","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"f15e177f2c438b2f96357f0e49c2945807b6f083","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1599225585.f15e177f2c438b2f96357f0e49c2945807b6f083","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-SysyP7Uu5b6yCCvhv0/FZtccXKKD1p7DxBZDi6kE43wkDWqOMyzhIZwshu5OLuER+7HZupQtvx6glojO6xxNIg==","shasum":"89a4cdb9b9b3948ce524d82c39daf2bd783c640a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1599225585.f15e177f2c438b2f96357f0e49c2945807b6f083.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUj7zCRA9TVsSAnZWagAAgKcP/210GNII71UQS3pHlB2C\nhtPVOeUxAITNrYyJL4CLFvRizbrtuc1rdGsmXUQXTluE5CoMhqSiTuPVclCE\niKsEcp5tl+TBmeHMflA1XikD/rfvo9vSktRefZdv7lGSPjbeqlj/FL+o2Bui\nXroKjRUwLYg9sq4t9j/OWngiEQtotOrtGpoSBRQb3OdCjnSUDZpXv2b7kfkv\nCp0reqPQ/lzZU2hWNEg0RnqkvLPCnbI8/gyjYdOabmQbrqlqy2eRW8+lfXO3\nljjE5mULAVFVaYmspwL39C+gGWL9TryqbCZnEgdrYcwOY6Uk2bC5zwLVMtHa\nCZvQJCYckzN/9HLz5h/w5zzh5DGqs6YtPquVaCyN/NiRFxUEfxy0jd1PgUuc\n+GBFbs/Eo5yodkh/DSOBIgw5WLzMrnT6ZYWtx+v4lRj1gq8bm0y7+bAVvRpN\n/A+pdG0Njd/nVJh8sHu1HIOQplUQmsxdBHY3ijC4QKm7CLXOYCGdaR1o4gCq\ne1EL20g4loHAZ3YoQq76baSa23EZVU+0VUIgKQXhCBREEMjQOAWtaPlJ0qcr\nrizEKHv0yVmINSSHaR4lQL2hA8bR1O8AYChJ6b8mjwZE/vepZBaocUmTe5Pb\ngXa0f+a+cXOBx+ktDMvo3LHwdmVl1NpDM+wrCugR9gbGTK6DRHKVif13u20a\nbjob\r\n=u0b7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+YRYzzX7oGxJFj/YaM5ti+5NrwlEKqJ93khxnXJocAQIgdtmguWZHKCojkYchyZZiMM4QujOGJ6txN/li5ZQ2h6o="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1599225585.f15e177f2c438b2f96357f0e49c2945807b6f083_1599225586874_0.4159020291248552"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1599397208.c97590d98b1d2f342cdad8d8ab2024cc896b2b9f":{"name":"githubauthreq","version":"5.18.0-next.1599397208.c97590d98b1d2f342cdad8d8ab2024cc896b2b9f","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c97590d98b1d2f342cdad8d8ab2024cc896b2b9f","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1599397208.c97590d98b1d2f342cdad8d8ab2024cc896b2b9f","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-suPLFQfg/025CCeGbPUhjFOQQWgpcF0I0bHepB77BnFQuEcYz46zrcsWQl2s9JVAKL7V1OKneA3t3CMLpFNLcw==","shasum":"eae8047c37fe298d208162f3f5dd9b8606333bba","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1599397208.c97590d98b1d2f342cdad8d8ab2024cc896b2b9f.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVN1aCRA9TVsSAnZWagAA0wAP/AiRDkzGAtx6EMFnsN3c\nFOAHVudl3/iygltn/Otyw8/X6N7/rK5pQfOLhlJQZfeGlKwHu8YhQnlEqg8I\nU7rMUm2AiHJRhhgqt6woKdNv1QFMhi2ksQsyjGIsqvm1397xa2Zap5Ghgqv0\nZTsVKJHVwI1sMVV8Zd+56+0FFhqQZwKjtjko1Vyw+BhlZvCFOo5EZheGV/DC\nd7tgzf44RcUR3I0538GihGLRkycsOZjNP9tlqi9UhQkzOzvNz+VlRFOCYsOO\n8F25qViKwbH2IIZ8Wdhnodi/oUtI+wN1pdEQrUUC2sb9O8FDslAW3FBcZaMF\nBKLc8IE15kS7VoBgtOLO1O1jD6pCPILl9Xpeid9nrhrH1zuLxYbvmLcrg9dI\nZ2KRvr9LuB3QisgzTaJNUKyabdV4qrRzl1zKPLDQZd4R67LLAiOS1j/mpeqw\nyDjRqR1QAA4vVJs1iDezB+f0JYiqv0KyE6wisSTq2WGe6qY/R17e88mKBvgk\nKIj3VzeviDCxkV4mi5sLA7s3s/78f3eDO+TN/XbP0w44whwgVqm2uLKYBiQJ\nnwzN3XJEf5eOzD2zM0T7kE5rhUJUea1XyhujwGdCf2ngaxcM4Fk+MFA5fmRs\nzze8LOV/kIw4rY17Arlnk6/SUNCKBJC8deUBZQ8mWTg6Ycu9ljJZwoC3Pn1y\nTO/x\r\n=05B9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMRWA5QTtRm6jOqH7b/P+aYMuWbNhk7oosT1kCL0McbQIhANvwB5LhZ0LXei8BKdxC7N/YnTTOSCasV1JyU0Ek5YIY"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1599397208.c97590d98b1d2f342cdad8d8ab2024cc896b2b9f_1599397210376_0.8752653622728825"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1599995336.475a7d2f6444822daa51d07c391c366bc72513fb":{"name":"githubauthreq","version":"5.18.0-next.1599995336.475a7d2f6444822daa51d07c391c366bc72513fb","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"475a7d2f6444822daa51d07c391c366bc72513fb","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1599995336.475a7d2f6444822daa51d07c391c366bc72513fb","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iGi0Pa8CTWtNtSbmCZXXq0GC6LY0emFq28jO49UgmrW/OJCfngtQQ0/5LgjfCRu7ePsjE5bl5O9ziG8ZjI8XpQ==","shasum":"9f0d92a8c4a7d4a94ccff75c843b2d76e2cb4d84","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1599995336.475a7d2f6444822daa51d07c391c366bc72513fb.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXf3KCRA9TVsSAnZWagAAq/QP/2QPaG61ANowWOn+AT+U\nDfenNT5uquLb0ilQbmHYb66L4Dy6B84S0jra6P7Vpfz1lvXMkBFDrpQIcM+m\nI6dsVhQZ1YBLVvATY4HbrFGRwhV5tcc/o8/iddDqIG7R6zv1IwwZvBvD0neV\n0eQ98EsxnBZJWgU8YpbIw+luFuh1WFsQHxsT1FSS0vPg+ICPCaX7Z2W5asL0\nKwvQh4BSVg06HmW75FCB4JnTq/pQh6bqFxH7YxhPlIsVAe+GIpveNhOSayTw\nMefZqMau85UsBcUBFGwKGzyrr1Jq8AKIzSWvOhcB69FRoDiqpLT61Yx5yEbO\naOuiQIf4RJ31w7b20Mb3Lh7VDz9NxZOPxpod4IIeUR4oi0gRG2+dSiHAyR6N\nq4me+iHC+iPLQrXPNv1+sGS0VjITktDam8VlvsVTfBTWQzTOkhPCACb59uzx\nB7ATpyrkttoYpm8vksvFJYVBtPeQPG6VfNim28TfqPqURtthwsIR3tKUrbpQ\n+iKSh7a5FvXDS1Tgs6/7T+N2ck5lWyIZ74VEexcvabiBHCiqRA9ik+mOqkBF\n6zkOm75nxstkS3XkEjMLCPsuhyLZdczsL19GFsq5F1JEarKslSh6cqYGUSfl\nvuyvgDzlUtk1MnWfTSj+APuM7QpDCJdh8jdt1UoIJ5VuBKQf4EErDhTBt4bv\ne78E\r\n=v5Nk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAHNisV6t8ZwSHvYDu5XIeYhVf+1P+XtnQXsrJzCG4rAiBM1DQKjLY3EmLMtUTX0AMed3VDUWzo9Kv7A3IEjUsurA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1599995336.475a7d2f6444822daa51d07c391c366bc72513fb_1599995337928_0.08110379863903527"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1599998961.30d23e2afe919f3ead2e5ac8b847ec7d7ccad642":{"name":"githubauthreq","version":"5.18.0-next.1599998961.30d23e2afe919f3ead2e5ac8b847ec7d7ccad642","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"30d23e2afe919f3ead2e5ac8b847ec7d7ccad642","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1599998961.30d23e2afe919f3ead2e5ac8b847ec7d7ccad642","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fpsXR0AyD72QWBKLshPCInfkC5e+BYi2D4sU0TRkNGRLwTh+7ANPHtw1r6ZSUGa+j4AYiFQg7TlzxTSa9OQv+g==","shasum":"3ab7b9c08f9b7f722f7f1aaf7c4c0b2079aef287","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1599998961.30d23e2afe919f3ead2e5ac8b847ec7d7ccad642.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXgvzCRA9TVsSAnZWagAAddUQAISZBOIFtR2UdkWFadFr\nf7+iJGt7IyNlU7lgp29TA+tJ12RG6qAzbf8O6GFiXE1COuMLjkjiRyIggckx\nx/j/dGnur4tqRutVVICczFgdZsn0arFv6QA3GytJBcZNlfPMP4ezSElekJMr\nXQV0VIHCFe6QO4afvJqMIXaXLfZYKpC3ArzgOyJg+3bEi/qjCiOSQMKtE9gR\ntq4oueDYs+ZcZEssJVDKNfMTYiAQ6EV99rCTuzpBXYKT4yaJDrd+FGvBXR9A\nmxa53RWJ49Rz+mFpdkLzvoS10lriPRfJ63bfki+mdvNZbCvO+HlHiXJAohPp\nILo9X6uMN2++ax5KhWAU4qqbeOAJjZ3kaPCgSa8mVdJuOCX0GRIa3QFGvTi1\nrvv+Jch8RrGalTMG9Jh46yf42DDX/+L9KQ6otwHUmPLw/rA90ZZ4hkmEsfeq\nYx0QY9XtdokBtOBisG4aMORcy+Ah3DEvahh1TQiYxwfcHj2cPi7VssS/Lf6N\n8O/J0uggcOp9J6/Bv/VPWmwlpKzVEHNDiOr/X9sLGnEDE86np8VrwzHfn1mk\nhrj5yVUbutU6k+QMDNeSGa6CjKSPOT6FNXLr3Mz4uTw9sq4r9UgBcE4Ih04Q\naGs9a1aWxkgNPlIOjyEndrAuiKdL4U2dETMqOk6A1V+fUW1IxITLk5C98Fxs\n8wfu\r\n=rR/J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRCrY6uQDYcbDebHcmhQpxhaaV1iez3JJKMJ5KvxneLAiBq4SkBzfKTyw9o8BDuvI0eT7H+wNP3GkoJy7lKQnTDnA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1599998961.30d23e2afe919f3ead2e5ac8b847ec7d7ccad642_1599998962835_0.9978298136544577"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1600605729.47bc6a7cf19ef669c42230d90768925278f6a8c5":{"name":"githubauthreq","version":"5.18.0-next.1600605729.47bc6a7cf19ef669c42230d90768925278f6a8c5","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"47bc6a7cf19ef669c42230d90768925278f6a8c5","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1600605729.47bc6a7cf19ef669c42230d90768925278f6a8c5","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wMC86P5aZet/Dl1gYdVmm7XrNkyaVlaeKfmrFjBsqg/DcxDdczqOSMqq+tP5Zg52yMYCmgccvHuVTTgeeURzxA==","shasum":"59695ca70264ca27e2048854e8084cf2a2c9a49a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1600605729.47bc6a7cf19ef669c42230d90768925278f6a8c5.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZ04jCRA9TVsSAnZWagAAu0MP/R+GZk1dmSPrhRKgFTt8\nkwqV1KwZXqGGJw37MB6FiSpLEs34q4WOALl/ARGx0cBAaPCVzfRRRwduWsTM\nfTPzmwluHN3jYnUz9/oMcyPfWLA+tDmHwaShyMhzPmVsdoC4v/gwVUs1pYiY\nLjEuamGMwOMT9hRsGIUSnb+19+pxulsKEQ1GcNHAj+cbNK0Tqc24PtcM9R2o\njP5zLZYzWybj6cq8lwxZCgUciNQ0NbvYtQg5VzgFaxM7cbzByA3eAHawx29U\nyEaqAaloHFcfgLRi12FwtGfjRI974KE4/25/m3wPytzbmKTbEpfFJCrp5KX4\nAS+DwAO9a5rNr2WQl7lu53yoNARCl7dvyE8XH2KulYv3ByClulqKAnJ3Bewu\nxmEKKdJYpQ0D0TN/clzFnghBjipikTa8h4L77+tiULut3WrOf2zwt2arfYp7\ngu90qKQudoWqJCyF4gqDEPz02sJh0ALDuIR6+pyIFlE8P8kH7GH3r4cI8F0h\nq3zIolgKI8i/tLexgusvBM9AtyJaXdS12izdAkuIOGaPEhhMCHbgXzVplkRm\nqWF2KeUEsxS3dvUmVdoP4bir360jdyGUnUlo0bJi0Z+9AdCBwaeyRKjB8R+H\np7GF1wRjkABsZXCJRh9C8rGqk/RdDJAfM8/v5q54qzS4JVYD5M92mrkAUZ3N\n5rqH\r\n=AKQU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCBkkg/ZehVPErnaxm8V2dR2v6801fGQ/xJsWXe9CCswIhAK8TEkw8ZkOCstUN25UqbFir5THskvamcDRVbW3gA0+a"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1600605729.47bc6a7cf19ef669c42230d90768925278f6a8c5_1600605730435_0.70441674801173"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1601206958.aaad3fe026257ae74fa68106a6edfcf3ab15b7fa":{"name":"githubauthreq","version":"5.18.0-next.1601206958.aaad3fe026257ae74fa68106a6edfcf3ab15b7fa","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"aaad3fe026257ae74fa68106a6edfcf3ab15b7fa","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1601206958.aaad3fe026257ae74fa68106a6edfcf3ab15b7fa","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RW0YD2BE5i3X6A6s06Zv3mgpX+W30Z3Lo5N6At9jqoencm/DHxes1hl72tc2j4lM3qCEs6YaK5R2PrHqau+Nwg==","shasum":"bf574a9e3938ee67b1d93ce0ce3232a64044d0bd","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1601206958.aaad3fe026257ae74fa68106a6edfcf3ab15b7fa.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcHqwCRA9TVsSAnZWagAAnbIQAINJ2jLvImDlMIIU+mxA\nPexqcOveZdymuueYBtGQ87tPpn88nXKRuvTDrS3/bIqAm8c9fWTkdfEmdh34\naZBlVEHuwubmneJntwYOfrQrX/ZwCA0OyhqoEVKXtQc7wSCHjIHsVltrUhAS\nffPIwPyLXl1MEETWFmezOUyF2zYffOCTtv/ZcTgTmEoEjIjjQ69mH/BAkndL\nfscdNqqsSxybvm5k2AmGx3hONunnBEs5/XnbVbaS3P810BlMbr+FcsBC3i+v\nd0kFVs6qkd/zqx63V7Gx2UC90eagrAMhC/hl77yn3xHViibMp3Rpg+4iTV15\n4XAKnptUXtyF2KuzBRv5FOPDZcaBXgEeTJrGa5ORG1o6bFuRewpkzkuRcn2+\n+xmMrCJAkFb8z0nnFyjRMz/wrXilK4YCzAjOLXnke1ZndrlkxcRh2TxxhnC1\nz3WVFbzr1AwQ7l7k8z4amRpBbl4SnwmX+n1peQLboIeX04z6sNFsFzjt/CKw\nJYtt+M5ZUUHt5yQS8Br8IUwMh08jcWbVF/btnkvey/2otuIW7ck6t2b95IN2\nIybi5g0ToE1cwZr5kShWmdX+A1Uv8hW9rxcniMS8ulO7tA5ckWSzPhzkLoqp\nKkccNBTOze4xlUKHGOGU5uEa4afISR7yn+WHQ32nMfHP853n0gvldy7YZUPN\nzCxp\r\n=tnKX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc1TErTWWrDlSbM54Za5za+w8CzIkfoY8C63Hf83CNswIhAKj0q1YBFWLoCm4bo4VwnnJwjUwWoPurEvnivgng3nGy"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1601206958.aaad3fe026257ae74fa68106a6edfcf3ab15b7fa_1601206959976_0.11350484525515658"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1601214373.8d8baedcec63151cb9bb65716c4eb655268d910f":{"name":"githubauthreq","version":"5.18.0-next.1601214373.8d8baedcec63151cb9bb65716c4eb655268d910f","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"8d8baedcec63151cb9bb65716c4eb655268d910f","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1601214373.8d8baedcec63151cb9bb65716c4eb655268d910f","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-izX2M6VpPdv6zd/PG4/+wAOc15rTp1XEuMHsE5lTlkAYfmGUr7Jb8V9SJclIGowWNVCBtVre/a7iTkSJeFC1FA==","shasum":"96299a3fcd9266c0a1f83f57916dbfd4f5cb83a9","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1601214373.8d8baedcec63151cb9bb65716c4eb655268d910f.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcJenCRA9TVsSAnZWagAAT8MP/3eP3JOJSro5naUipTI6\n7h/0CymADRVq6XticsBddac9Cbu5OyrMWQ7Dx/1KW7jJZGZ3dyAasj/X5eAU\n1wADNKuKrIeYhUuBxXTOGWAknh66l1SkAwotdjegcKQtcZQ0hMN0xo8MKKIv\n4doQx7lCeTuINoExMneEdg3ZF+VyHfWyCzWWId9/aZOY8VCjiafIv8Z7IqUv\ndbjnkiVeYBTS9fQXDUcD/QVbyCaw5/plzAfx1PsEkjaC+Jsd/qArGYe+fad4\ngr7O4RNRJWHJPgiPDX+s6qUnReC0E9tnoKYHNZjza0CP1d8XQV9VG4x6tF8w\n5fFkNkEBiY5o6ycHGTQQmuAL4WPkZqsVDshEdygCkYXHsVhZISdsR7lRBpl+\n/b7rWl8IYgVh44bIX1jHvpLLfX+S0H+rb56kT+7ln2cakR0XAJ1AkaPJ03ML\nvLoxhH+pFlq8a5uOnw3zwEzVg9obGTWYi3y5jhJttFeYUuTUPoBJxKK/40iX\nlCDDEYW11/3iQMmUdXmef39AJtFhsoPsijXHhG2MP9yyD23AdP9WT8idcLXp\n4/Rqz6LQv9EaG2g+X8tToTgqZqcR0gGdiGzjEo27hBwmMmH3wI4q3OCUQL1/\nK2SShH4qsjy9xKBHoZPUHMInIi5PGfnv4n7zbQaBrugLIK0sJeg0EDRgz+y8\n0DXU\r\n=f+EL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEd2UUALpFJca2wjZbrFoJoECQrMvo5wiMiXBnxNRlgnAiEA9wUADuXt06/ux+m+gJUF0GUWOaB6BURm5na0RSsmA6o="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1601214373.8d8baedcec63151cb9bb65716c4eb655268d910f_1601214374882_0.3542046184644545"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1601796800.3121758e5ab8be430551d5ba17a5b28a64fa454a":{"name":"githubauthreq","version":"5.18.0-next.1601796800.3121758e5ab8be430551d5ba17a5b28a64fa454a","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"3121758e5ab8be430551d5ba17a5b28a64fa454a","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1601796800.3121758e5ab8be430551d5ba17a5b28a64fa454a","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WIUt0rhCcm79dlqLO3DfmQvhcOE3BP+dCxtM/Ew04FUQ9UNLXrxFs73cLIOvjcW3DOZ29JL96A5hJUTVFVhV6A==","shasum":"c37953f90506be93222eb42de18fb96557116539","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1601796800.3121758e5ab8be430551d5ba17a5b28a64fa454a.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeXrCCRA9TVsSAnZWagAA6t8P/j0J1GRGOugRza02X2+S\nHq/4/ruuB07ETJZQGpHLUFvyRqN2BJ0+kZSbJtiIXj0OBIL6+Jr53VyeChnt\nuTSTHw1UUUGPYPiERpganF4Otr3xiWWV2mc6qFQXZ9RIr+Tp3JBC81W3WMFF\nGyupi9yGP7BPWFhM62OCwKMt7m9l6k1U2L6fXzTr1CrUxN5hXZRYwPv2Zy2U\nLWfYY16HV0SZsYUUlvQndajQRE8BDaZaDRh9oxvpkcDnx9hkk3TOv61QI2ju\na7mEKrbNwpme9J524zdc6+PwdFa1IYiqLJh5LE4018yITjmHb45ZxZwTrMsH\nGF5CBD6NnSOAQW0neYzYwVBZsIxr+ucXsa9vDtEhrTFzHBxPIajboFNsq1Uv\nU5HEwpj0epwPA4KI2iLZY50fbh4Y7xMWkA/LE/gqxiHJpSJE1islLk/HY7n2\n47K7SFrml1HFSWzjRgVEmY5Dv7G8KxyCRXKGbesjytKiAIi/B54OapjQ2Vgi\nEqh/Tw1PeEo+VChzYEEPc5pWAEZae4Mj2WsLO9pR0/dN9yvkBVb5THWASU13\nCIBHUKJ499WhJbNbHLzRTveHNETm3WNJCi6TiMudDyRyKG8HeXLyaiyKPYZz\n5ea+v8TRGoYSpirYV9/Njuh9DVoSVhHeYHcybgnJ7hKOXv42E7A7c9GRlQNt\nmHp4\r\n=V9R5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKFcgPyYU8VvEb9+E3/UAPBBkGiXkMUxJEZE8BSKcFKwIhANPcdgnR3cMIGYV5oIdyZ27332O2o/tbVAdhY+Pi57Dc"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1601796800.3121758e5ab8be430551d5ba17a5b28a64fa454a_1601796801741_0.6998430951320234"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1602408607.99e025a199f9271861a42a16ec4ec261c0bccb11":{"name":"githubauthreq","version":"5.18.0-next.1602408607.99e025a199f9271861a42a16ec4ec261c0bccb11","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"99e025a199f9271861a42a16ec4ec261c0bccb11","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1602408607.99e025a199f9271861a42a16ec4ec261c0bccb11","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mBzI0RcR340AxGldQgIkGWUQ+v9vGq9G/ijH3tmpf5fPG5keMw/topB9Ue00aDQIADwgGfTuLQcoshETVU1cSA==","shasum":"9d59d9915044fb9214038f82c4ee195a9f3db4ad","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1602408607.99e025a199f9271861a42a16ec4ec261c0bccb11.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgtChCRA9TVsSAnZWagAA/iUQAIlcdHiTBq+7G1y6fKhR\nuPedKIVJum/TV6JmNvoBjGYaZpf9mfsEoBK0eVAQCg4xh1h9ZiRMekHwMR/t\nTQ17LrVgEgePGNzSMCU9fYrqY9/QmdADxVJFV130rb3ptwyxp9XOQsxBrTzX\nPPF3e68czha/y1zv4UPp/zcy8OjtNfe9E9nLaKUWX+4mICSBxtiqlGHSQPCZ\nFWC4xJ+BpJyPGpJNk10IqXTCgq8J6mh8PdikeiiT+Cg7i2akgRgNdcRPNUaN\noqvBXzMhSSm1bfxKfsF21wXcW8iN4OtfzByDiqlDxyAxe+DAG4b2mkV6U+6/\n6TH0ri/ZqojO4bPRfoH2OgDlZLCGXIqMCN8iygOpY8kJ4Z91NzWURBClsF5e\npzrgNt7ArI84HM4yYFxDUIjMTxA3m+hkfEFnoMkiNUq5TZas1z7RzZdP91A6\n89hFBJKYcuJImgXCGeU1eL4XNEVW9FHh0XCNGTXgGlUhLiAqEBXll2Nq18vH\n4mO0LbpwlftZfY7+Az7IEKxjiVJbRi7/VbrM1x79R2fpdXbNMO1OBfEAHOKY\nGhdD6pStuCp3JsMyd/5pfrb80+rJmfVnpWghWQSXCd1cx54GUf1ss3Vw+bB2\nWiaCW3rDmLldoyZltpNANciY/ruPiiVbXpV+oPH70Ixg05PgGVoevno0Rudc\nbWEF\r\n=M2Dw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICbxn1hRUw38O9jouFa8iLDAy1tjjsqZ5puzHpDB7LQ8AiBOqIszL1jFNQeITpek+tAtMb7siuHSiH5Gcou++QoKEQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1602408607.99e025a199f9271861a42a16ec4ec261c0bccb11_1602408608483_0.7106366575747542"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1603015607.2a97b31f29d5fed3aee3836d197a27bba63af916":{"name":"githubauthreq","version":"5.18.0-next.1603015607.2a97b31f29d5fed3aee3836d197a27bba63af916","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"2a97b31f29d5fed3aee3836d197a27bba63af916","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1603015607.2a97b31f29d5fed3aee3836d197a27bba63af916","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wAdKVwSjRt0mBsKlirwMnQWwu6B6I5dOLpzBjpdeVDxaXiRAQ4Z1kX/02Yk7UcH8V69ULX21ghrsbkvCCRWYYw==","shasum":"f8f58fcbe944c8c933d11406222a43919251e8bd","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1603015607.2a97b31f29d5fed3aee3836d197a27bba63af916.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjBO5CRA9TVsSAnZWagAAQLoP/1IXL5eHxqbtd3LLGef1\nIP47GZ+sdtgMtaUMR9OncHhZY4/50sj/9gZ6LAMaT3f7IOd1zZ1mfaUUvZhz\nlYBxPUXg36gFu285RoEq8XIKOKf9cXqaJYCAPfswXUKrEGJ2noG6lj8xQSI7\n9uEOF5MEGv2RbCcHA9fmzASbS7Ag1zeUMvqpijWmNfjSy0CicdnTMC6b7Wbf\nuy5RiUI2rg+R2MxSwlvi6jF198qKV3YvX4x1Mo8bVpW1Emj9KR6ztBswii24\n4vyBfCD4nPXX1brsUdOMbQA8bPp2XrJ+DQspV225unPpJb8y9bg/2FZCAAEi\n2tvolXKNzD5pjAg3UKLAHKdXN3nN+4VZAU3kOME3lcqvDXh+gmmoUnBrnyVh\nnqp1mLaDtYkFjk+ryDfSFAoGHlb0ClBE6lDbMNAU8gqQec+vyU/VWln6yBss\nF7NxAb80WSRWlAeB/lMhWzVrWZFD2wbZGL6Vc5jSFrrxOm7DAbXQCIsLJEdG\nP8uh+M1xuHKc7mRCrU2LV1n/f6cDrBa3yCHZCgEkt2mXjnQeTAsjUDinaWzF\nA/XXxsusETKXUrTnXNXZFqPaOW2G50DU0SoDNrIxrusNzPdwiR/VqiDg9yoq\notDlzOIEhPftSMTDdHYBFyjMjhiWjzth6neSzQrz1OuQw+25yuG+qWNM3xvc\nW4BY\r\n=KurC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE78jmuFOUSCUhmchq5zTwXq/4e5KkEbY6QB5z484H72AiAVqodgYZeUr7rV7pUchViEoGMwduRcQ/MDvkVaU2vOkg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1603015607.2a97b31f29d5fed3aee3836d197a27bba63af916_1603015609044_0.5224771275621369"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.18.0-next.1603622863.d2453108a4e93a34026be5f1066a41eb3a51fbcb":{"name":"githubauthreq","version":"5.18.0-next.1603622863.d2453108a4e93a34026be5f1066a41eb3a51fbcb","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 13 || 14","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 13 || 14 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 13 || 14","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^4.2.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.16.0","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","assert-helpers":"^7.2.0","cross-fetch":"^3.0.5","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.11.0","make-deno-edition":"^1.1.1","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","typedoc":"^0.19.0","typescript":"^4.0.2","valid-directory":"^3.3.0","valid-module":"^1.13.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d2453108a4e93a34026be5f1066a41eb3a51fbcb","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.18.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.18.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 13 || 14 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.18.0-next.1603622863.d2453108a4e93a34026be5f1066a41eb3a51fbcb","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mkdfRKe4aFvLZ0pd3tcXe/WyEy8AeCdm5NjBbxxRcE6et3BTS6CN4RZYiJPrZ/Iy2YKjXfXYqvCir5ky/0/ZsQ==","shasum":"4142661ff36699698483c5e4009eba2a2178b4fc","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.18.0-next.1603622863.d2453108a4e93a34026be5f1066a41eb3a51fbcb.tgz","fileCount":17,"unpackedSize":51406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflVfRCRA9TVsSAnZWagAAjTkQAJ0EjBUQan0foEbqQiP7\nc4KQO5xK+Ww0PAQmc1BHOr/91VRPN0jLBWnIxwa4DL9afl35py0cb7e/amMh\nysayahWBebLtSfCxpSpkMrRAx2jRJZVoBek8qi9zC5BO4PThpx/3klXr80RJ\nHTJ8nAc6ryMvMR5G+RPyt7zjn2+4E45GbsVLZSP7yRwoSyU3FhkraUB24aKE\nezDnIMcLn0n+Diqr/QavCCYSBRlL7MtvU5pqxXdcz0lrYl6PLF9UG6kxA7fr\nfGfVAfrUfK1vTJzgpPzYmzrTTUa6ewI2+T7Cq39HPPUBKM9Vqe4j03x8bw+X\n7aH5JEHVLypJR0+XPqvX/Ufh0jflXqXZFRQcA0L1ZqaIALEGLWFxyii9pPvy\n/YR2lVGp8IPbxd2eey34ZdrJGa7+CUQrbzXZZ+hZnNqCt5k7LTY3g5G9CAJb\nlIV2xTs2aVt72XtpOGUXhF001pPGUttk5ueTNksGTCTf2SeJ/+e3hVhdRe1/\n/Iaf1CB5JdR2ilZ2nDliOrqf8XdQUIQWYCU95fw/jNNLAcH7PuythXVI/C0h\nb2CDFc+7/N1ZcmM0eWVlatMmTw/x7L9szvhOhqFCZADkZyaXWMs/2bYi+OGh\npQEeFZKS6KpEhSypggXDFXz3SWBjB2rPG2H3f2NYtdoazxX1selRb+ieu3Hf\n+Q36\r\n=jmUF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzrMm8Gx7KqVVX7ERYOLdC/4+WGjHZ0Z/lMTQtQfRwSAiEAjFH5EnGcU4s83g2exUtLqF3ngy8HmbV35eoUFkj1jQY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.18.0-next.1603622863.d2453108a4e93a34026be5f1066a41eb3a51fbcb_1603622864896_0.040213450904804215"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.19.0-next.1603937449.195f6edf1f5372e8cbc08812f48596d590bdca99":{"name":"githubauthreq","version":"5.19.0-next.1603937449.195f6edf1f5372e8cbc08812f48596d590bdca99","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^6.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","cross-fetch":"^3.0.6","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"195f6edf1f5372e8cbc08812f48596d590bdca99","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.19.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.19.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.19.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.19.0-next.1603937449.195f6edf1f5372e8cbc08812f48596d590bdca99","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yszZIpqFuW1iSktjn5+z4wqBrtmpxxSR6uL3KW5GXT1xqS20v8IbAEVauhuO2E3TVHPLpT+IIrrC4x5oeTpSaw==","shasum":"8f400c0fe86c46c4457ba53f1d8a6ff848238881","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.19.0-next.1603937449.195f6edf1f5372e8cbc08812f48596d590bdca99.tgz","fileCount":17,"unpackedSize":51623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmiSqCRA9TVsSAnZWagAAOjQQAJtgIt0kr1YgEk90WV/u\nWpcyxbem/RT0M7/CKzsEMa256Pm6DuFIkmygaXfnQ1AaAEUuYo1/pSIdF0CJ\nMjtm0vedroXliivK6tgq6c+pgwKLeZlMm7hwFalvImucIdbIBUagbkM9TEEK\n7LKZzthMX+Z4lxfLAsh5iHUvUVFkEjSQLAiPLQvR7WSMZf22ZYS44y7iE+Z1\nxyIGtQdtM2BjWjaahg5rYdGgJN77QuYefYwMUoYRhpKrHA2y7eG268J99f1q\nDgxw6ncFmVP/jSPJMYYSWeNq2gd3M+2XqbZBLP01Y9gNcV2DpcqR5d4yKU8q\n279ZQ11/RE8Rkd9mhH89q5IEOoTC/1y/DjPbZZGeEnK0c2OVhdXxw9HyZcWZ\nFdlFoUiogUVr2dI9qmOLK0C5XLnmQPy0RvEkzup1+JAQP7i6mpY1UEvuZjLf\nRYybj9ZkYgZDYfH9oqSJQTc0THAu6KUjErlGMOlZJGTtJDybKJ/gmLsGoQIf\nNFkE7u572R/uIoYaaxfh0Ato+eF5SYnhpBXEuopvO6wo83HqoChhmOFe08sM\noVliuraJqa0WMmEl5NZNnSjy7ToOlV3mMKw9iwHSXEz/QZ+WJ/wdsR431LVD\nFDfSAceH9q91P7gAfv/wqY2/rel7gTfWX5kufJY9v810004s54v2/g5uDePO\norKe\r\n=fLAD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/EHOGgJuMcSP3+v953VYor29gOZayiSEJ4pPBwEiyYgIhAOJmxty4moJ9RB3vfg/UXcAyCQjKS2U+1ZH8dgPQTO/7"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.19.0-next.1603937449.195f6edf1f5372e8cbc08812f48596d590bdca99_1603937450315_0.4194579834798149"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.19.0":{"name":"githubauthreq","version":"5.19.0","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^6.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","cross-fetch":"^3.0.6","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"195f6edf1f5372e8cbc08812f48596d590bdca99","_id":"githubauthreq@5.19.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4kCmXqcz72MUSqOMZfvmFKzOGkJpodjRN4fR4nDPl/gTv5DEw8KWxrzJqwNKm3TJNqN5vkbJHYWq0CyDlwNlOA==","shasum":"d28ea579b7793de7983d4a265f87bf15c850825b","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.19.0.tgz","fileCount":17,"unpackedSize":51566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmiSvCRA9TVsSAnZWagAAPycQAJjmgO8VI+5iXwtyRQlf\nKs2Awlhlcwi/VEefer4xkK1WQ5miSbZDLPYK7viTnMHB2HLBTCF6QBACPHNr\nrnxco3KAlEqtv6Gg67rkrX7BxDXFUBsi8S0ks20Dz2UM0GzxqVZQnSNopn63\nq4tbCH8vhjSWuAjb6Em5gGyr8g0Xcav1eWX47Y9Co4A00s9XMpzdEADXVyHH\nWC3WwY8aBPZkjpYtmtza27UaScTWsZI58r8UPJTN8D2WHFiJ9LA/MU98DZ46\njiBIdC/lboVsiA9DgjrxUXEtdCzlU+fdheHDCt06Y7xcqx78uOzyY+Wn8+hG\nPdYLJF67qwR3DvkVjn9Uny/qaTFIYIHrP8O7XP3E5U/rnuy9aD+vNCqHGukw\nBvaXDNaR3HRb2C3uihD3vADnM0H3dd2Pikg6XR4dRT8Jy9cSycq5xMsXCCOa\ntKd2ELTzGb5ojKbRKILIWW5MhVwC+454m9KzeoUtojp7H9bJIJIDL3uuJCNg\nsETDLgBgyYJhQ5hvc8yO0s/5BQG6pZNgp+LEbAJqx6gkrWR4axfp0OgUER1Z\n0OcOqKhBVBQ/xvuATDaQ1d04INJ24fX6YYeJEFnsVj3VmlkkYP496MxfBvN7\nJmWkClIxzpfv9Es1TJ0r8cZUfxKqYXy8Qgurs3sXMF1U/734GF6PPRpCSRlm\nf5UQ\r\n=YyQj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANn2YQH2eaGKNj9Fcvt6WSW/fDqHFVn26xMPZyGDIWyAiBkt3zIDB2slpR5iTWUdkdVe2Sb9iWJ/bGsjM2S3U7+QA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.19.0_1603937454612_0.8237867507900998"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"5.19.0-next.1604234490.366cd2e391dff5e68c34a0618525d6b2e3270853":{"name":"githubauthreq","version":"5.19.0-next.1604234490.366cd2e391dff5e68c34a0618525d6b2e3270853","description":"Authorise GitHub API requests with the appropriate environment variables","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^6.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.17.0","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0","assert-helpers":"^8.1.0","cross-fetch":"^3.0.6","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.12.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.4.0","valid-module":"^1.14.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"366cd2e391dff5e68c34a0618525d6b2e3270853","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorise GitHub API requests with the appropriate environment variables\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n### Fetch\n\n#### Header\n\nUsing environment variables:\n\n```javascript\nimport { getHeaders } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: getHeaders(),\n})\n```\n\n```javascript\nimport { getAuthHeader } from 'githubauthreq'\nfetch('https://api.github.com/user', {\n    headers: {\n        Authorization: getAuthHeader(),\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n#### Query String\n\nUsing environment variables:\n\n```javascript\nimport { getParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n})\n```\n\n### Manual\n\n`getHeaders`, `getAuthHeader`, `getParams` accept an object containing either:\n\n-   `GITHUB_ACCESS_TOKEN`\n-   `GITHUB_CLIENT_ID` + `GITHUB_CLIENT_SECRET`\n\nBy default they will use `process.env` if it exists\n\n### Redaction\n\nWhen using query string, you should redact the error message to prevent credentials from leaking in log files:\n\n```javascript\nimport { getParams, redactParams } from 'githubauthreq'\nfetch(`https://api.github.com/user?${getParams()}`, {\n    headers: {\n        Accept: 'application/vnd.github.v3+json',\n    },\n}).catch((err) => console.error(redactParams(err.message)))\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^5.19.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^5.19.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@5.19.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"githubauthreq@5.19.0-next.1604234490.366cd2e391dff5e68c34a0618525d6b2e3270853","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZO8z9mMXkmJL95g5V5mrJcFruChBc9A1IzKvARF5zmcnlN/ALlXn6eGMc9Bqzejjv5jVP/kDu5bru5H3DRe6Cg==","shasum":"ee8cd9a203eca503c6189a6ca5fb406441057fe0","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-5.19.0-next.1604234490.366cd2e391dff5e68c34a0618525d6b2e3270853.tgz","fileCount":17,"unpackedSize":51623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnqz8CRA9TVsSAnZWagAAZKAP/0LT8WiHNxZg55UGprl9\nUXKw1/qg0xmocDtaWOJmcVQl1uLSOpqWlKUeyKoyE7q3vsT57V95LtmGP7QA\nWz7pH7jFnETVxpgTy/SwoSIv5zmSfwGQSfj5Fm6j/a0EXJndARfhw3wBdtxB\n6olKRmV0Qf8HrFAm5mRfwfH+Ae0ig0VppPldwkKrB/q2bcQ/E8DF6vKgAW6u\nE4H8M4H7isvnFmDzo1vIfED5+HLVA4OigPBkq9DDSpfqDKcZ8YL6ICYXkWR8\n3yqjix2UVCnn6EYuqNK3yJzivLhx+T4EtqjFdJdQ0GOgRL4tDoTxPlK80izh\n8FCG1UaroMY9zFqUfyl+ZbRMMp/d/txvVi1ZGJ/ZVWechqA83pUrQY/nr8Jv\nJXHrnVQfxrzVoLFXnDtDI1CEJjgbOKZA3sBbD5zdREHjwvxKtVB/WRznurfj\nnC2AOde0JgJhSkDejFVWWSnAlqXl5+m/EhSK9+VtGS9QKUNstvlaU4impKB8\nr0vOr49NAKKU4mAoSCVvzr5wNv0r81zx9pL6kGjxdromHCdixWcITKYaxCC+\njefpAPmTyNQH/d8xluLEVEVoueSrjvIHkzZqFr0URBCGLSz31U+q6T+xj52b\nfmDxl+3g9iBOYN4Gtjr278Fzj8cgbrPBmT+oZYXQOLpAle+cNnA9YcEUtXni\nyKSb\r\n=fx4i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBttuyWCeZDypWNOLoKcS7sZ2DdQ7LqTc5qPE+AAFuUAiEA67HEQwZt/GkRo1B+ZnDn013XaLqsjXlRL3Da9UskdX0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_5.19.0-next.1604234490.366cd2e391dff5e68c34a0618525d6b2e3270853_1604234491947_0.5269451170764243"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"6.0.0-next.1605169857.b79abf92b188b440f73cf03cbdfd35f106dfbe15":{"name":"githubauthreq","version":"6.0.0-next.1605169857.b79abf92b188b440f73cf03cbdfd35f106dfbe15","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^6.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","assert-helpers":"^8.1.0","cross-fetch":"^3.0.6","eslint":"^7.13.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.7","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.5.0","valid-module":"^1.15.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n```typescript\n// imports with typescript\nimport { GitHubCredentials, getHeaders, getApiUrl, getUrl, redactSearchParams } from 'githubauthreq'\nimport { env } from 'process\nconst githubCredentials = env as GitHubCredentials\n// if using javascript, omit GitHubCredentials\n\n// recommended: authorization via headers\nfetch(getApiUrl(githubCredentials) + '/user', {\n    headers: getHeaders(githubCredentials),\n})\n\n// alternative: authorization via url\ntry {\n    // if you want to customize the search params, you can also use: { searchParams: new URLSearchParams() }\n    fetch(getUrl(githubCredentials, {pathname: '/user'}))\n}\ncatch (err) {\n    // redact the credentials from the error\n    console.error(redactSearchParams(err.message))\n}\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^6.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^6.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@6.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"b79abf92b188b440f73cf03cbdfd35f106dfbe15","_id":"githubauthreq@6.0.0-next.1605169857.b79abf92b188b440f73cf03cbdfd35f106dfbe15","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-f/69X6ZJKPEKBZMl93RKjydQG3SWJY5DoGx31Z/M6cVWXKVlpBez1aMUuWGi9LWS3EF6PTCOKOZV5z2LGoaGVA==","shasum":"9d536e984f6de3c8b3eb8e7f8073d753c8a3d52b","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-6.0.0-next.1605169857.b79abf92b188b440f73cf03cbdfd35f106dfbe15.tgz","fileCount":17,"unpackedSize":62344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrPLDCRA9TVsSAnZWagAAUOMP/RlX5GKmWx4brXgRdqWD\nHcttKS/v0cRYamrYD8IBK/MbhZsM5gsrwIEnejoAhNcpMmdndHk0/131Hd/0\nPvWIaRJf9NTUelQK1BqMjIOSWtlfk46nJFHnifVjlc3K/cYsN6rUyEMI1yz9\nqlcAkCIA3pmiwydgTuh4oNPKxp3b7ylCABwAXkpiXCfbcgBdohreVAY6WSMt\nmQ3u8AVBpsWvi+meEHoO2Eb5t6M2EWFwv43Q0q72msckV4iG2Nn+YKm6r6jI\nBIlw3BTXGT7DYg5JMRONBH80yXGJBwcgnBIEITbQv3VsX5hOxlpZ4CEjk0/N\nplXOycC9DYADLZpisckhjV3g90n3Ff8ORIP56s4h5ktPR/zNHDMVbmrSRM2u\n42sD0yvTwiUl7ORHngmHTXRVDFvReGp2bwuVCVZzyepr/SRJ+krqsMSFD0Ds\nsXOdomP3VCT2UVJYBqc2t9Pyr4bw9MluPvZkAf376/ypwsmg739MQ1B534vD\nSt62ZtM1GYqAIGVeMEOmSguLWc3rVdZgfOpYMjqsPwBw5nAEfJkK6C5wVoQ3\njxBLY9FC91LKeV5jbaVvl4XXXSL0vAIROLO4RrS7gClVjxcPbtAj45bwHyCH\nQ+0xfIixvwD9TZfi2SKFPLpZfoEL9MKwbuIzFalzL6Fq0hQEpqxj5+ykHNc0\nUHU7\r\n=uYwk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETbqlTJzUNjMxZY7j8n/B5+uiY0+bWb/cTzlyOh4lSwAiEAyQ5Jg2IiQYY7eo/6llS9ERu5ai36K67icyKe09WwMaI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_6.0.0-next.1605169857.b79abf92b188b440f73cf03cbdfd35f106dfbe15_1605169859226_0.8538242074744082"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"6.0.0-next.1605178687.cd83c7d37b0ceb2654035fe944e66a1813821f0c":{"name":"githubauthreq","version":"6.0.0-next.1605178687.cd83c7d37b0ceb2654035fe944e66a1813821f0c","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^6.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","assert-helpers":"^8.1.0","cross-fetch":"^3.0.6","eslint":"^7.13.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.7","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.5.0","valid-module":"^1.15.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/githubauthreq\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/githubauthreq/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)\n\n```typescript\n// imports with typescript\nimport { GitHubCredentials, getHeaders, getApiUrl, getUrl, redactSearchParams } from 'githubauthreq'\nimport { env } from 'process\nconst githubCredentials = env as GitHubCredentials\n// if using javascript, omit GitHubCredentials\n\n// recommended: authorization via headers\nfetch(getApiUrl(githubCredentials) + '/user', {\n    headers: getHeaders(githubCredentials),\n})\n\n// alternative: authorization via url\ntry {\n    // if you want to customize the search params, you can also use: { searchParams: new URLSearchParams() }\n    fetch(getUrl(githubCredentials, {pathname: '/user'}))\n}\ncatch (err) {\n    // redact the credentials from the error\n    console.error(redactSearchParams(err.message))\n}\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq').default</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//cdn.skypack.dev/githubauthreq@^6.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//unpkg.com/githubauthreq@^6.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import pkg from '//dev.jspm.io/githubauthreq@6.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-esnext/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 15 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"cd83c7d37b0ceb2654035fe944e66a1813821f0c","_id":"githubauthreq@6.0.0-next.1605178687.cd83c7d37b0ceb2654035fe944e66a1813821f0c","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-N5xlPJBikHU9007yBY/5LWvxCU8GEBQGCjwbY5nxWgNPZ0pWGxqUXMIE8nWWlVqguIUjCmeUETZKUXpJ8M571Q==","shasum":"27f462f748b6367aa78c0909be5b2055786f8ceb","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-6.0.0-next.1605178687.cd83c7d37b0ceb2654035fe944e66a1813821f0c.tgz","fileCount":17,"unpackedSize":62344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrRVBCRA9TVsSAnZWagAAtHQP/idE/jUm81yNBd+tIlJ6\nVe2XScCjMI8ik4wffEvskCp5/z+N2Wg3rZmFmGLjOmJy1JxhZKGb0UwFb2S4\nVc93/FYFbR++4aeWu6BzR/sf/K1kBHgHqJ041JH2Ui2td2+Bli6KoPzuZ0el\nAkHDlX0cFPAMu9/mktsOhmgfsFrz3fDmJQpJVNO/NeCq4iH19LV03lYjVsNL\nICw7VA6FsSlBfQZOV1pJs4MG0Jt1B47SyMWmIGRUnmCDHj9d8aOCj9L7vtoE\n7hfOpa09gvRXiW/uiHSyBuvWhYg/kAeOsKgaxHRclQYZBkMb1V/HcWVwetdM\ny9NjqkY4wJcJl5U6QE/fzOw5yujEwy4SlDmElCykPLgGYLhZUQfg4KGHpNQD\nTxUyX6PD/x5A0/+ByTi4yDHaQjDLGeIAr+RdvUsOKnJ031KC72zLL0+tGnpP\nb1F69mSSuZmj22ADt+9SOBTLWmhMVbyaKJdEJhAfS8GvhfO/i7/UqXGL8b0G\n4KYZTz06cEqfcZL+2IIGsQpDBl5vACJXtyuzFrBbRckQRaT4k+uXofxt8MwH\nyd+UUAdBwPLmoymhtYRkkwXCPs6hE/YcKAGiR6lMBUocbggHrc8SXREPHYWZ\n8yVg8v74MP8mfWWNRRwJRplQ7ioTL/emH7WAkcXLR2ABpCf/X8VzyYQwPPSH\n808w\r\n=Ixqh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFH0bVcoziVXuHlqCxUh2wJAGg3q7aO1YXAseHy3um5wAiEA4YN5/F0+yeDBK3ANnFZm7rHo39rHn3wWwfEA3CG/7YM="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_6.0.0-next.1605178687.cd83c7d37b0ceb2654035fe944e66a1813821f0c_1605178689198_0.9700822262069608"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"6.0.0":{"name":"githubauthreq","version":"6.0.0","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","esnext","export-default","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2019 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules","directory":"edition-esnext","entry":"index.js","tags":["compiled","javascript","esnext","require"],"engines":{"node":"14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 15","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 15","browsers":false}}],"types":"./compiled-types/","type":"module","main":"index.cjs","exports":{"node":{"import":"./edition-es2019-esm/index.js","default":"./index.cjs","require":"./edition-esnext/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"editions":"^6.1.0","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.18.0","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","assert-helpers":"^8.1.0","cross-fetch":"^3.0.6","eslint":"^7.13.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","kava":"^5.13.0","make-deno-edition":"^1.2.0","prettier":"^2.1.2","projectz":"^2.17.0","surge":"^0.21.7","typedoc":"^0.19.2","typescript":"^4.0.5","valid-directory":"^3.5.0","valid-module":"^1.15.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:edition-esnext":"tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"cd83c7d37b0ceb2654035fe944e66a1813821f0c","_id":"githubauthreq@6.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wB+ODbjYsjWM6lgcnz353WlRKQxkUNWcf1mnip7FA2BTbApt4yBhyVCZSnw9XllH1crQ2oOWz4/HzQ+ibnqinw==","shasum":"29f37c8527d3cbb410d879a9ca7651e20cfa8761","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-6.0.0.tgz","fileCount":17,"unpackedSize":62287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrRVGCRA9TVsSAnZWagAAZlsP/AxxTUx01a90S2xBWoNS\nYXvLXuYxMZyC3ngZWkI7PVEKuZND62yHhjVzswooeA3thgHhpXeAY9cqauPJ\nYd2YwqsC6zUtPHZuF5NZg8aOu1AxWrMc02IEGymCAMnpcKoJX6lNfRkvMWu8\n/PCrUGr33LycPs4xwYZzdluYzPiWV+MpETnyMl/m3Oor89jOwZaeH6iXXFSF\nyKTxPZ/d206Iu38vpA7+TdtzrOKd7vrx0/0+F2+S6/9bjTbYnUVxLQpoTmir\nY/1lVBzLRWk4gTCPaZcswtuj+6m9p+7TCT2soQwm6wmlbLISPg7gwPwZBsOA\nIF46E+GPS/QOntgokHkSXTJhqDvZY+dxUzx1OVU23WDFFeo0zE9FTNwpzR0l\nEKfjNT03PeP4WijKhpAGfs3JzaGPXHJvqtSjCVjmO1PM8hTqtdJH+dcuO7Z9\nToyotwykdZlRUiWK9wF7zyOqBYXnevDIE9raSE/IwOYtH5w37PfWsGhLQeHW\nr33F/CAeFKbn5/2wPTauWxqJIz4Fxn4whJXbFXnXWpYKi0IRaV6h+WIyoOT9\nl6Fcd1dfcOPOvkrJCTUVoA8/qjsV7RINZ6thgltBLxzkL4jsiBacDrjd1Jlt\nEiHh2cGEZ074pM0hA8ggIcBXSgahtSzqoYW8lG79BJOQeedIRYv2S9DKNeYq\nIzYy\r\n=BDwW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsM3ZiA1a9eDeZ0Qis7+milEBzYYKvFbUsJWvZOYirnAiEAvV5rrecBFe5u9CbjPbk4mC4lIyY2e1j1efAwvZVM81s="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_6.0.0_1605178694004_0.2643079703547069"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a":{"name":"githubauthreq","version":"6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.19.0","@typescript-eslint/eslint-plugin":"^4.28.5","@typescript-eslint/parser":"^4.28.5","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.31.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.14.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.21.0","surge":"^0.23.0","typedoc":"^0.21.4","typescript":"4.3.5","valid-directory":"^3.7.0","valid-module":"^1.16.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/githubauthreq/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/githubauthreq/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/)\n\n```typescript\n// imports with typescript\nimport { GitHubCredentials, getHeaders, getApiUrl, getUrl, redactSearchParams } from 'githubauthreq'\nimport { env } from 'process\nconst githubCredentials = env as GitHubCredentials\n// if using javascript, omit GitHubCredentials\n\n// recommended: authorization via headers\nfetch(getApiUrl(githubCredentials) + '/user', {\n    headers: getHeaders(githubCredentials),\n})\n\n// alternative: authorization via url\ntry {\n    // if you want to customize the search params, you can also use: { searchParams: new URLSearchParams() }\n    fetch(getUrl(githubCredentials, {pathname: '/user'}))\n}\ncatch (err) {\n    // redact the credentials from the error\n    console.error(redactSearchParams(err.message))\n}\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.skypack.dev/githubauthreq@^6.3.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^6.3.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@6.3.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2019/index.js</code></li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"a38a12fc4cf11195b5527a57ab9cc28acc0ced2a","_id":"githubauthreq@6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-5RVCsQFz2wlMjBdSJU4+pse//Ogn9hIPQt+EIijT+YatlGLOLNDhfXmL9rbELGOBnF27sVuHvXa4YAKFszcbSg==","shasum":"a2afbf540bc44da36eec9d96d8de90a430ed4a24","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a.tgz","fileCount":13,"unpackedSize":55593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBtWhCRA9TVsSAnZWagAAMLkQAJ8gXF+92EVfHXbzjhZt\nOr4M+FJH1B0PZOBZ/sCh3UdmV+nhTGkSVJdJ+uiCfTkaW85P4QTe3g6i4acf\nxjRX+67PraN8C5Lzm69Wr37Wsu4cp4BmSJFNKzMDFaPKHukacgJSXXbV99Tf\nqUvV3mMkh5Hk8SQJ4A3+dSq2EIN3h0rVB4b5FXPG3rnDT78ljaL9nN3Dmaj4\nif2Z3bgzmoMHAnlCeV+sEl0pqIezJ6D7oxpPZqKDBuh9/MXqwqyyP4+rZVxZ\nM6wOZhr3e1VTQ+XBJzDETs/rK699FXK+s0sAimSSSY6TisBseVyqoJANWzvz\nvsfyuz1J/QZzA47+uke/qMStuxFZXQBRBcxsVAhpwbbaBp9BSOiv0LrGYkjO\nIWONCBzB2tO1F3ZRoqHrRjObYkM2lVVw24FCbWO1FfXT6aryBHBAsbS1MkCS\nKsBoAkSR4o6a+2+HM2bqIgqvbxWiCHGzFHvW3mpW3C8hMojgaop+a/XdWv5Y\n0zSsaObXsDPZgHbiausMGP8Lcxz2dUYtssem0KfV7igtsJKlWzcJ/lgOH28I\nf37elf+IZXI3zGyYtIFfZY9lu4G4wefz3DLE4upm1OyE2hNmw9Fwv06T4FJe\nqun/Cdlg9YAb4CkbM4I/tP+m07aFjO83zlXNvd1zvPSwxr8UqSVnSzE0dZoG\ncRV0\r\n=AFxp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFuNhRC7nvLNnC8dgm1c+JCFE3TlsDmBPaVtqLqK6lXMAiEA/V/NSeF04z+xz/0Sj91JLbJY8+qoMqpWz5lY2rf7+Cw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a_1627837857438_0.4694006874166601"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"6.4.0":{"name":"githubauthreq","version":"6.4.0","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.20.0","@typescript-eslint/eslint-plugin":"^4.29.0","@typescript-eslint/parser":"^4.29.0","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.32.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.5","typescript":"4.3.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"gitHead":"146925a14973b35db744d3026ccb1c7fa6533395","_id":"githubauthreq@6.4.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-M03mUSetWvFcnxO1RhydJ4MMWy3aQxaeH8intLOtyN/DUKSvVs7Xefco7lGN+i9tmGlsITXe3indoO1IqljJJw==","shasum":"e7b31fe21237c4660efe18e508ec71bae95cee74","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-6.4.0.tgz","fileCount":13,"unpackedSize":55730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCiR0CRA9TVsSAnZWagAAhxAQAIKLkmBiOle/iI+2+VTS\njbeD61f0kWSWTe9FLTn+tuNQfxdsV197+i32F4mQLg2cP5FmNCw1WRwNKWcW\nQyCQsPpe/TvH7Y+bDM0cp1SgZsScFO9e5K2MdmOdTD1wNnFL57kCrNaxQhbn\nCArMEQSl/ljC9tVdCCZiOyDGqVD/HE6wtgI70Zu5bGEcKhqlLvH3Fs7kn2K6\nW6F5oqmrSHYbryfkkMtag6v4Rt2uNusYlvdBKYoIDE4fP80QtbSiF0CGVaHm\n1eKq3CGW/zNpg1k2vHOYojyLn5QTh6p5HyZhLwpfK9GAFIR0KoOFyHS2Cp+I\n8KbFMKVqw5l3TPo2A72GFcFzq3mCNngK33Z6XNNu/JKST1GHmZix31TMFq+R\n2MQys7a4/gB678SqGV3bTEtPa9lzZe5nfF2gSkQ8+976oqmcAOcdj84gX/hF\ns/3pmHXVByrR71psvFy9MyHB8l/TYqsKG7+VNa5yOPd4q/amyEi+1iuO/iTB\n3YtAOm2TjbBeOI2M6hPUEqu/7imdPDC9lUgPASj/LfaQX5Sb/V0YTsdSF2++\nEuKiGy+oWj3TCEPSs6Pmd0BM5vg4j5CmjeJxYQhNP4QtIaeh5jZdEpMrRzFo\n9t0gmuOYebLe+wDXe11xB7OQnoEHLbaGzjT+ck8Zv8yI5JPUA92FkO1rDAjG\nBnco\r\n=nVI2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIELZBBejOx0u91ySEFwTRjy1n6+k8pGVHLMbg7vquaICAiA7Cq4uoemzLCunu5OynbUQ8mPI7jPNWYeabuZgaScJfA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_6.4.0_1628054644603_0.6322423118040852"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"6.4.0-next.1628055224.146925a14973b35db744d3026ccb1c7fa6533395":{"name":"githubauthreq","version":"6.4.0-next.1628055224.146925a14973b35db744d3026ccb1c7fa6533395","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.20.0","@typescript-eslint/eslint-plugin":"^4.29.0","@typescript-eslint/parser":"^4.29.0","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.32.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.5","typescript":"4.3.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/githubauthreq/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/githubauthreq/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/)\n\n```typescript\n// imports with typescript\nimport { GitHubCredentials, getHeaders, getApiUrl, getUrl, redactSearchParams } from 'githubauthreq'\nimport { env } from 'process\nconst githubCredentials = env as GitHubCredentials\n// if using javascript, omit GitHubCredentials\n\n// recommended: authorization via headers\nfetch(getApiUrl(githubCredentials) + '/user', {\n    headers: getHeaders(githubCredentials),\n})\n\n// alternative: authorization via url\ntry {\n    // if you want to customize the search params, you can also use: { searchParams: new URLSearchParams() }\n    fetch(getUrl(githubCredentials, {pathname: '/user'}))\n}\ncatch (err) {\n    // redact the credentials from the error\n    console.error(redactSearchParams(err.message))\n}\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.skypack.dev/githubauthreq@^6.4.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^6.4.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@6.4.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2019/index.js</code></li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"146925a14973b35db744d3026ccb1c7fa6533395","_id":"githubauthreq@6.4.0-next.1628055224.146925a14973b35db744d3026ccb1c7fa6533395","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-qWSo4VenebooriYlUx02zddf5smEVn9db0VCHiheyyCcRopcq3ls40uhd+RhSFVaqi3Q7+oK7alMNtrllFMifQ==","shasum":"1ae11adc4a15197d9ddc9f268a68b0c4a2a40a42","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-6.4.0-next.1628055224.146925a14973b35db744d3026ccb1c7fa6533395.tgz","fileCount":13,"unpackedSize":55788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCia5CRA9TVsSAnZWagAAsFoP/3e2EZGniq9DNhwwkKl1\nS/Elmzj10j4cZhP05NyuLDjwHwOGEqu3N8/nwtl5rLWMWUqq7BW6aze9OPtU\nCo06EyZ+Sat+Aj0HLM8MOcl9hPJoY1S69dWvvB0lqQBP4v5YR3JrwAZKhwJa\nZ+WqKjYTTR5/pAZ9i3xuz4bJicHgqs8WYgucBXFl+9jO67FOqLKZ1gyuAEAv\neMH3inYPlZud+3YfCLin9TaAdoT9KKttzP/94urTAT8UhzelW2ZnKEmOsHMb\nOpPnlQY7V7pUGdu03BCxBkmIqqFmUA3vBcUTfr9Kn50Oro78RgFboa6xxsKF\naO8+P39Wk3AMGvNezorzXOtbMhbv4a8yqTfEryUQuGyWGXDoYvvLe3iimblY\n0tC4BeBaGT+G2awMtA5kj3977nSPzW3URIjw1bhLD2KWiE5v/bHEsw6FmG5k\nJ5i5cjYvxJiqffKENcUQOwWHmWyKyADycHNORQwL3c7XwRHTkB4LnCmc/KKJ\ne/gpLGBK1Aeu2/RVCUBi8xtKeIfRIpiUWxlOG6j1RSLMrq+9U/0jmJmCSh4o\nMFIn/H48/tvYntnlMMmNPWoDDzNQZ2FtSiQepoYlAgBv2A5P9n40UMrrc5K1\nQ1V4uWJFBS9glRrsPpCNqJ9rXTkFwJASV8+7LJMkAe4fplb2gUPx1kAcyhCC\n9O7k\r\n=66j6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCekEWB3WD+GgCR7yiMLAvM9yNGRfv8iU6DFnOACPKC1wIhAMn/Jtd0fYWx0Y8fa7LAcGYSNR6kDL9fEuw3U3ojjfSo"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_6.4.0-next.1628055224.146925a14973b35db744d3026ccb1c7fa6533395_1628055225656_0.9730307991500802"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"7.0.0-next.1628061611.089f66e8fa0057182ce45419b9f6bf11f4930eeb":{"name":"githubauthreq","version":"7.0.0-next.1628061611.089f66e8fa0057182ce45419b9f6bf11f4930eeb","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"node-fetch":"^2.6.1","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.20.0","@typescript-eslint/eslint-plugin":"^4.29.0","@typescript-eslint/parser":"^4.29.0","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.32.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.5","typescript":"4.3.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/githubauthreq/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/githubauthreq/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/)\n\nUsing TypeScript:\n\n```typescript\n// imports using typescript\nimport { fetch, GitHubCredentials } from 'githubauthreq'\nimport { env } from 'process'\nconst githubCredentials = env as GitHubCredentials\n\n// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary\nfetch(githubCredentials, {\n    pathname: `user`,\n    // searchParams, headers\n})\n```\n\nUsing JavaScript:\n\n```javascript\n// imports with javascript\nimport { fetch } from 'githubauthreq'\nimport { env as githubCredentials } from 'process'\n\n// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary\nfetch(githubCredentials, {\n    pathname: `user`,\n    // searchParams, headers\n})\n```\n\nIf you wish for a more manual approach, refer to the [Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/).\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.skypack.dev/githubauthreq@^7.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^7.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@7.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2019/index.js</code></li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"089f66e8fa0057182ce45419b9f6bf11f4930eeb","_id":"githubauthreq@7.0.0-next.1628061611.089f66e8fa0057182ce45419b9f6bf11f4930eeb","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-s9s+3ixw1tiUFYJ89GoobFEWUgOw69r4ghYshnxYkudix+RiAJRL+sTpVPFVKPtIRynYXtVST5jp/UIyYDSDeQ==","shasum":"f05a9c26bfa1f3fc1a23166d3cadb8b64c5b08ea","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-7.0.0-next.1628061611.089f66e8fa0057182ce45419b9f6bf11f4930eeb.tgz","fileCount":13,"unpackedSize":67426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCj+sCRA9TVsSAnZWagAAZKUQAIbwsQaHOINJW3cSU11W\n6KdNKO8Rezfde93HNhCVs+OQsfQbr/ZSIJSBpE4higAp+YwnOIoe61r/LWSO\nxazkpmoXzBn2aWXKyCLtfpwWDi75TJ4Po+8FQSYmtciBnFpfVKIXgCxHJNwg\nQw4UE8IoHS/lBBD2M7tjhlZxVhSuL96XDafJLXugknxYrQFtOfGwQDi2ysNE\nmhwUMPTR+rvtP2muR9l6yG8vOdxRU9xdcyAEcdb7I/zueg7YIxi244ZIoM+F\nuxUYf/9iBn46T2txE3TLrp5YhRAWyc0wBulZGq3GYwEchk4wlMB8NIKqkfPM\n6u3O8S/SstmXBYMxQLz28lwjEubsgjcbrxPw2XyyNTGjCagNahf1nKpy9pPE\nlpFzb+q5nQTFUavzOZ6bSlMlOcCCBqB/sclQbAzsf5WKWNbJat5mMielae7o\nBg7cXwWfe3pvznfTt8fu11TMN0DVfreW/iUInqI7t3tua7bHcOat2oEU02kf\nnE+MrDGAIEkQqq4eEweMEIoDnUiIyfS7UkvkGpL14MZySDUPKsOGi2Av0msv\nzCKAyfV+tQn08Y9WOrb0TlB1W20/u3WjY0YTfxVTo3FkDTf4tx4qxtFJoZjw\nxYWCvaEdSeS6rIbMVEc7G9/HH73Pi9pXvbzRpOALaVhzHFte64lNfLvcif8r\n/Cf5\r\n=mDz6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+A0Sxt+MQYgPumMaRZE+cwv4mBfuftknlbZRGVhT6dQIhAOiwBrxvxtMCCc6BTEAGAfdJXMX26cXSnHHzFeXaXFlU"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_7.0.0-next.1628061611.089f66e8fa0057182ce45419b9f6bf11f4930eeb_1628061612773_0.11780331094513596"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"7.0.0":{"name":"githubauthreq","version":"7.0.0","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"node-fetch":"^2.6.1","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.20.0","@typescript-eslint/eslint-plugin":"^4.29.0","@typescript-eslint/parser":"^4.29.0","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.32.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.5","typescript":"4.3.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"gitHead":"089f66e8fa0057182ce45419b9f6bf11f4930eeb","_id":"githubauthreq@7.0.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-f8ORmGemqc2uNzb+UkGzEjC2HeRurRutMs1gc8vmzKAMf4flHt49dFYrKelXjHsvfb/vDsCEdP+xAFOXoWiRvg==","shasum":"2f36bc25e68b2293a34b264cec47486e5ddf431f","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-7.0.0.tgz","fileCount":13,"unpackedSize":67368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCj/aCRA9TVsSAnZWagAA5g4P/0EswDIXZvvLFOR4wSuH\nY6V0pMgvdF38MgA3b39+9jCub3c7Tnl3VoNUCdfQ36hE4qa1C8rxvcFi3OEi\nEdekK3tFd6tAhWSJMDP5dnX1Fqb5Amuw5uijhYO76aPrU6/garXgMzC3piid\nlJixwvzq9pw9BlqkSFIJkW0eskllA5Ca+lVD8yYrEKSF301iUd5cwnHUCGGo\nnH4nhJ1Nn929rt+olvWfjo1npKkRKUon0pg4Av2orLUokWiuJFswgzzUGzd/\nyU0JRzWs8hCS/7WMttlEpwcEyMeiJhonPDmik2tljlngQvJaCJheeFbxshFQ\nw/O1Kmh+SaxRYIQmuE8FU5K05WelijYvgtQY1bTATOzevw70B24MV7cvGSK/\nFNpbPVzL/wVEDEywYbuWdulkEEoUM2I6THMk6u2iX0X6sFOVHH8skRsIimrE\nyIgEDvX7Z4DAXEvfYQs1Cv4gJelg9X2TRpWQwK58Tk5O9tUiyjyw3iZsdQPu\nR09VP3r+UittXshxWHFQ4M1EVQnH4hf/t+aaLroABs8BDAldPvzjyFz+mr78\nHmnh/J+jnPNDgRjgGK0lvwkTKWHeCY8gOqqRqiVk+20qIWh9RMvOSBy+BGAg\nDFsnpKaxtJEu+h/Y77pXmsaE8kdfFOHfxGchEpxjcOZEc7vV+H2vOJ4ouXh/\nlUyA\r\n=vbc3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/WDNfVWHhptF3L3PkV1/5xOPEry8c8EH0mQHGAEjY9gIgY+KaoQ2cED4tigpFrjcvLsKhyQAs7ekJ6zyiZ9XYcv4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_7.0.0_1628061658081_0.9449737996282166"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971":{"name":"githubauthreq","version":"8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"node-fetch":"^2.6.1","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.20.0","@typescript-eslint/eslint-plugin":"^4.29.0","@typescript-eslint/parser":"^4.29.0","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.32.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.5","typescript":"4.3.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/githubauthreq/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/githubauthreq/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/)\n\nUsing TypeScript:\n\n```typescript\n// imports using typescript\nimport { fetch } from 'githubauthreq'\n\n// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary\nfetch({\n    pathname: `user`,\n    // url, searchParams, headers, credentials = process.env as GitHubCredentials\n})\n```\n\nUsing JavaScript:\n\n```javascript\n// imports with javascript\nimport { fetch } from 'githubauthreq'\n\n// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary\nfetch({\n    pathname: `user`,\n    // url, searchParams, headers, credentials = process.env\n})\n```\n\nIf you wish for a more manual approach, refer to the [Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/).\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.skypack.dev/githubauthreq@^8.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^8.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@8.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2019/index.js</code></li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"b54a3b82f81100186780ea0f79388f5f891cb971","_id":"githubauthreq@8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-BiFgQAL3DxPXUrliUOmlVNAk5HKVX+ZP3nqA7aJTzGdxqG+38wyoYPtRQLW7qVqFA9qbV7EN9lTXbbMPuoEbng==","shasum":"0842970f1c5079f0fc8603908aa804597f04830a","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971.tgz","fileCount":13,"unpackedSize":70831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhClAECRA9TVsSAnZWagAA3HUP/0SGvJM6toYRRPIOP4/3\ny+XAvKBC6e/n5n5Ez2okcnIfGM3Imek/SELMVvxuCbFRBeQG5KZ8+3wqNNEg\nwfhoLH+nMlh/WkL9X8cAS+Z9N5n3k7YmU1UFYzSljbLtltRBVNHd743RPpKL\nSR3zLWZXgxa5Lsivn/7dw2eFXc/I1mH1iMMUpES6MzxyNm+heOGGnEeS6eGc\npF1M6vxgI4qJhe8aQeG//sh43f9bkV3w8Mv8UlgFulhsorD8dl3PEQ2dWqWL\nnVmBMKmQ5V42KKiJfKdzQyid9KSP3AQM/5d+VyXvXptV9DfCjLOwYOUgazBP\n3YAjuYiPQ1SNW6MIoi1QlFSwH8364h4HQvQLaerYQXBfcGqvlPn/rnBINIjw\n5eY9MuJhh4huZWzfe1qabpUbkV0/4bC7+yths/Y52Z1jFfnpgnre5h7qtWTP\nyrs9vJ757oX5qpKYtpUSepubWHilSaIR1CbjjB3akW/HkxKs3qoUptx4NTVZ\ne0NJmV2UpEsp1PrQBLpaWsf5h+HslgJpiPk7mER1PZaXa+SVbIxxbTmODHlT\nOrPklBvFrjHFgFpvxkElQJJHUjAAsXJm6mmf6/ySiGb2bvCWG0HR+Feggoxf\nEq5F5yfx2Nk+Zu+Q4bvfLrp0gnvkFauEspksShV7rl8rnN1VMBPGjexJgbEj\nteXP\r\n=Dgwa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu7bDhvbu8F5PYa2CIFLykc3G9PlYZxdLDYVmEPWSGTQIgPvS37h4Cy+sGBxVMaTkQRL8lf+YHLzsyDVtM9iOUq9U="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971_1628065796000_0.509951591476453"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"},"8.0.0":{"name":"githubauthreq","version":"8.0.0","description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","license":"MIT","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"githubauthreq","githubSlug":"bevry/githubauthreq","npmPackageName":"githubauthreq"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"engines":{"node":">=10"},"editions":[{"description":"TypeScript source code with Import for modules","directory":"source","entry":"index.ts","tags":["source","typescript","import"],"engines":false},{"description":"TypeScript compiled against ES2020 for web browsers with Import for modules","directory":"edition-browsers","entry":"index.js","tags":["compiled","javascript","import"],"engines":{"node":false,"browsers":"defaults"}},{"description":"TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"edition-es2019","entry":"index.js","tags":["compiled","javascript","es2019","require"],"engines":{"node":"10 || 12 || 14 || 16","browsers":false}},{"description":"TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules","directory":"edition-es2019-esm","entry":"index.js","tags":["compiled","javascript","es2019","import"],"engines":{"node":"12 || 14 || 16","browsers":false}}],"types":"./compiled-types/","type":"module","main":"edition-es2019/index.js","exports":{"node":{"import":"./edition-es2019-esm/index.js","require":"./edition-es2019/index.js"},"browser":{"import":"./edition-browsers/index.js"}},"browser":"edition-browsers/index.js","module":"edition-browsers/index.js","dependencies":{"node-fetch":"^2.6.1","simplytyped":"^3.3.0"},"devDependencies":{"@bevry/update-contributors":"^1.20.0","@typescript-eslint/eslint-plugin":"^4.29.0","@typescript-eslint/parser":"^4.29.0","assert-helpers":"^8.4.0","cross-fetch":"^3.1.4","eslint":"^7.32.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","kava":"^5.15.0","make-deno-edition":"^1.3.0","prettier":"^2.3.2","projectz":"^2.22.0","surge":"^0.23.0","typedoc":"^0.21.5","typescript":"4.3.5","valid-directory":"^3.9.0","valid-module":"^1.17.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types","our:compile:deno":"make-deno-edition --attempt","our:compile:edition-browsers":"tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )","our:compile:edition-es2019":"tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json","our:compile:edition-es2019-esm":"tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json","our:compile:types":"tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:typedoc","our:meta:docs:typedoc":"rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:module && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:module":"valid-module","our:verify:prettier":"prettier --write .","test":"node ./edition-es2019/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"boundation":{"githubActionTestEnv":{"GITHUB_TOKEN":"${{ secrets.GITHUB_TOKEN }}"}},"gitHead":"b54a3b82f81100186780ea0f79388f5f891cb971","_id":"githubauthreq@8.0.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-sxVGpSMkwxklm9P3AnsrWuVE9dh+hZobpN1k4xj/ghfDWrUA7cXD0KEjH7Pvnvvf2jkyrX7u+5Tn4qHNvXZjAA==","shasum":"4904705819277341ddcba6d3e006dc9e5cadd38d","tarball":"https://registry.npmjs.org/githubauthreq/-/githubauthreq-8.0.0.tgz","fileCount":13,"unpackedSize":70773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhClApCRA9TVsSAnZWagAA3fMP+wcTZq6rUaP9lIht2KGz\njqaILPgsSHTehQlJY8vOfZ/TQkbdVuXA1L043Ik2jDfubGKXb5o5wNeBSsms\nXgPqiVoZZWTjmxdWnReA4Ikprw9NDrpoaynnXd1ZUfWltgN6/unRi6TtzmwF\nGxTrlOGmYtJ39RqJGISBAtTBf/JznUstrCQkq6nmKrZCem8xoUeTyfRljXGN\nfbyTLkJK8YZMDa5nHI7pv9wd/CGU1NQrJm8iWCIe6i6zqPBpoSVWQeT0AKJF\nnUgiwtapL1yCI7LobxgoVTVHOseHAabnaSPRoLpvXBaTThbP6iXS/UOdeumf\nKRLt/eahySOifjTXztjuHExuD+CbYx3Bdaaw5O3BCS26iIaA/q45COoDTbgu\nauqti7fPOfK3AB3Rsbgq/Ecb+aDmr/ooCUyXibvOQRjnl9mioBOlygjIpplq\nWlIYiGQnMsrsHg3kZ6jZIOOCpMcoSWZiYO9koI0X19bnDKNseb2IsLwopGuy\nWoTru85xzO9/O/Q8QenWtH2bGaX4S8qITYYuk3rUGVXYDpT0uXxKhIFqNh1v\n16wHsCeZWaGLQiosO9DK0acxzBuWuB/9H32RUSlvvF29jKY+OZNvtqsIi2ru\nVawvGiL5qNXnAAOrOnWVVOkT5qSUsTNPaVT/3gffXJxsfct2nTrOYSGkYjrv\nXlTv\r\n=deCK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqoiZl6BVvnIRmtCqAQalkWr5pZk3KbH0GiejTdaF0LAiAWFEl7jimbnDyd73Rxr+npvQpgNPV1m27+qMcZUOSIrA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/githubauthreq_8.0.0_1628065833611_0.06892546961887946"},"_hasShrinkwrap":false,"deprecated":"githubauthreq has been renamed to @bevry/github-api: npm uninstall 'githubauthreq' && npm install '@bevry/github-api' && open 'https://www.npmjs.com/package/@bevry/github-api'"}},"time":{"created":"2020-03-27T04:53:52.142Z","5.0.0-next.1585284830.8304b877c8fb074af5f9339d2d94eccd20440219":"2020-03-27T04:53:52.488Z","modified":"2022-05-03T20:54:22.145Z","5.0.0":"2020-03-27T04:54:05.095Z","5.1.0-next.1587956066.f0d0236ddc5b82e02c7613314827cd1e16e52b73":"2020-04-27T02:54:27.239Z","5.1.0":"2020-04-27T02:54:38.920Z","5.1.1-next.1587956307.533a763ea280cf6894b44a761eb7dff889f5d9e2":"2020-04-27T02:58:28.630Z","5.1.1":"2020-04-27T02:58:39.246Z","5.1.1-next.1587958948.98879b50ce9ccf117755ab27ddb15a371d2e3664":"2020-04-27T03:42:29.414Z","5.2.0-next.1588742597.5cbb79633aedf328e0c1ab904dacc985b7e634ce":"2020-05-06T05:23:18.883Z","5.2.0":"2020-05-06T05:24:39.254Z","5.3.0-next.1589165323.e3575fa633ee76666a38a8112988654c6dd5a255":"2020-05-11T02:48:44.892Z","5.3.0":"2020-05-11T02:50:09.079Z","5.4.0-next.1589990802.32996429bb04ca6236ef244535eb40979aaad375":"2020-05-20T16:06:43.852Z","5.4.0":"2020-05-20T16:08:07.292Z","5.5.0-next.1590039255.4efeeaad000eb1ac7e9b2442cf252d89da2741d8":"2020-05-21T05:34:16.786Z","5.5.0":"2020-05-21T05:35:47.948Z","5.6.0-next.1590075839.46ae9120dfb19e535447a1d2e6bb09fa23605e81":"2020-05-21T15:44:01.570Z","5.6.0":"2020-05-21T15:45:27.031Z","5.7.0-next.1591779542.04bc91c0fc1e37ea81d83e07429bd85a1b96418d":"2020-06-10T08:59:06.156Z","5.7.0":"2020-06-10T09:00:28.134Z","5.8.0-next.1591796659.eadcabee78837342bb3dd02f05e9c303238999b4":"2020-06-10T13:44:20.825Z","5.8.0":"2020-06-10T13:45:45.718Z","5.9.0-next.1592614424.d425a03021cd3cea7ef7572e0628718bc371107b":"2020-06-20T00:53:46.095Z","5.9.0":"2020-06-20T00:54:55.670Z","5.10.0-next.1592694878.bf11670b75a96eafa7e9db76e9436aa49cc5d6ca":"2020-06-20T23:14:39.976Z","5.10.0":"2020-06-20T23:16:02.358Z","5.11.0-next.1592741654.c076c9a491956aca648f956a446ef33b1e33c7ca":"2020-06-21T12:14:16.217Z","5.11.0":"2020-06-21T12:15:33.911Z","5.11.0-next.1593045876.be8f3381ec06bdd8476777a78754ce432a5210e7":"2020-06-25T00:44:37.737Z","5.12.0-next.1593055507.33fd05f24778a4d592f51d12830bc2380f628ebb":"2020-06-25T03:25:09.100Z","5.12.0":"2020-06-25T03:26:27.649Z","5.13.0-next.1595336702.20a0f62a2339b14efdd0a04da4a99c82c46356a8":"2020-07-21T13:05:03.916Z","5.13.0":"2020-07-21T13:06:31.672Z","5.14.0-next.1595346637.c45d37d160a23b3a1d412197ca798f8fb7134a1a":"2020-07-21T15:50:39.155Z","5.14.0":"2020-07-21T15:51:59.292Z","5.14.1-next.1595348599.1ebb46d78e1ca5c8e9accd5d53ea303d77c30d5c":"2020-07-21T16:23:20.534Z","5.14.1":"2020-07-21T16:24:38.381Z","5.15.0-next.1595355244.0745d8d32107a982a5bfc88a8fbd1bef79c32acf":"2020-07-21T18:14:06.304Z","5.15.0":"2020-07-21T18:15:32.184Z","5.16.0-next.1596516858.f196a675d40a2c5cda6961925e953eafebab1ece":"2020-08-04T04:54:20.270Z","5.16.0":"2020-08-04T04:55:48.070Z","5.17.0":"2020-08-17T20:34:08.946Z","5.17.0-next.1597696529.875d21abc5309cc4590a4f68a05fc280ced61a52":"2020-08-17T20:35:30.719Z","5.17.0-next.1598188307.e7b1fb611a2732130df65cae86cc2d970c7a163a":"2020-08-23T13:11:49.086Z","5.17.0-next.1599075384.f472822f9f65b49297dc4faba599bd98821dae79":"2020-09-02T19:36:25.729Z","5.18.0":"2020-09-04T13:15:24.489Z","5.18.0-next.1599225353.8171e7de62980186faaf85f180f317aa2b341d19":"2020-09-04T13:15:55.277Z","5.18.0-next.1599225585.f15e177f2c438b2f96357f0e49c2945807b6f083":"2020-09-04T13:19:47.011Z","5.18.0-next.1599397208.c97590d98b1d2f342cdad8d8ab2024cc896b2b9f":"2020-09-06T13:00:10.517Z","5.18.0-next.1599995336.475a7d2f6444822daa51d07c391c366bc72513fb":"2020-09-13T11:08:58.107Z","5.18.0-next.1599998961.30d23e2afe919f3ead2e5ac8b847ec7d7ccad642":"2020-09-13T12:09:22.992Z","5.18.0-next.1600605729.47bc6a7cf19ef669c42230d90768925278f6a8c5":"2020-09-20T12:42:10.545Z","5.18.0-next.1601206958.aaad3fe026257ae74fa68106a6edfcf3ab15b7fa":"2020-09-27T11:42:40.133Z","5.18.0-next.1601214373.8d8baedcec63151cb9bb65716c4eb655268d910f":"2020-09-27T13:46:15.069Z","5.18.0-next.1601796800.3121758e5ab8be430551d5ba17a5b28a64fa454a":"2020-10-04T07:33:21.858Z","5.18.0-next.1602408607.99e025a199f9271861a42a16ec4ec261c0bccb11":"2020-10-11T09:30:08.643Z","5.18.0-next.1603015607.2a97b31f29d5fed3aee3836d197a27bba63af916":"2020-10-18T10:06:49.185Z","5.18.0-next.1603622863.d2453108a4e93a34026be5f1066a41eb3a51fbcb":"2020-10-25T10:47:45.049Z","5.19.0-next.1603937449.195f6edf1f5372e8cbc08812f48596d590bdca99":"2020-10-29T02:10:50.508Z","5.19.0":"2020-10-29T02:10:54.807Z","5.19.0-next.1604234490.366cd2e391dff5e68c34a0618525d6b2e3270853":"2020-11-01T12:41:32.090Z","6.0.0-next.1605169857.b79abf92b188b440f73cf03cbdfd35f106dfbe15":"2020-11-12T08:30:59.355Z","6.0.0-next.1605178687.cd83c7d37b0ceb2654035fe944e66a1813821f0c":"2020-11-12T10:58:09.441Z","6.0.0":"2020-11-12T10:58:14.136Z","6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a":"2021-08-01T17:10:57.585Z","6.4.0":"2021-08-04T05:24:04.740Z","6.4.0-next.1628055224.146925a14973b35db744d3026ccb1c7fa6533395":"2021-08-04T05:33:45.980Z","7.0.0-next.1628061611.089f66e8fa0057182ce45419b9f6bf11f4930eeb":"2021-08-04T07:20:12.965Z","7.0.0":"2021-08-04T07:20:58.278Z","8.0.0-next.1628065794.b54a3b82f81100186780ea0f79388f5f891cb971":"2021-08-04T08:29:56.177Z","8.0.0":"2021-08-04T08:30:33.746Z"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"description":"Authorize GitHub API requests with the appropriate credentials and preferences.","homepage":"https://github.com/bevry/githubauthreq","keywords":["api","auth","browser","es2019","github","module","node","querystring","typed","types","typescript"],"repository":{"type":"git","url":"git+https://github.com/bevry/githubauthreq.git"},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"bugs":{"url":"https://github.com/bevry/githubauthreq/issues"},"license":"MIT","readme":"<!-- TITLE/ -->\n\n<h1>githubauthreq</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/githubauthreq/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/githubauthreq/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/githubauthreq.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/githubauthreq\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/githubauthreq.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/githubauthreq\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/githubauthreq.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/githubauthreq#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/githubauthreq.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nAuthorize GitHub API requests with the appropriate credentials and preferences.\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/)\n\nUsing TypeScript:\n\n```typescript\n// imports using typescript\nimport { fetch } from 'githubauthreq'\n\n// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary\nfetch({\n    pathname: `user`,\n    // url, searchParams, headers, credentials = process.env as GitHubCredentials\n})\n```\n\nUsing JavaScript:\n\n```javascript\n// imports with javascript\nimport { fetch } from 'githubauthreq'\n\n// fetches the GitHub API URL securely via headers authorization, so no redaction is necessary\nfetch({\n    pathname: `user`,\n    // url, searchParams, headers, credentials = process.env\n})\n```\n\nIf you wish for a more manual approach, refer to the [Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/).\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save githubauthreq</code></li>\n<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>\n<li>Require: <code>const pkg = require('githubauthreq')</code></li>\n</ul>\n\n<a href=\"https://www.skypack.dev\" title=\"Skypack is a JavaScript Delivery Network for modern web apps\"><h3>Skypack</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//cdn.skypack.dev/githubauthreq@^8.0.0'\n</script>\n```\n\n<a href=\"https://unpkg.com\" title=\"unpkg is a fast, global content delivery network for everything on npm\"><h3>unpkg</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//unpkg.com/githubauthreq@^8.0.0'\n</script>\n```\n\n<a href=\"https://jspm.io\" title=\"Native ES Modules CDN\"><h3>jspm</h3></a>\n\n``` html\n<script type=\"module\">\n    import * as pkg from '//dev.jspm.io/githubauthreq@8.0.0'\n</script>\n```\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>githubauthreq/source/index.ts</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> source code with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq/edition-browsers/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020\" title=\"ECMAScript ES2020\">ES2020</a> for web browsers with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li>\n<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2019/index.js</code></li>\n<li><code>githubauthreq/edition-es2019/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a> compiled against <a href=\"https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019\" title=\"ECMAScript ES2019\">ES2019</a> for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 12 || 14 || 16 with <a href=\"https://babeljs.io/docs/learn-es2015/#modules\" title=\"ECMAScript Modules\">Import</a> for modules</li></ul>\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/githubauthreq/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/githubauthreq\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/githubauthreq/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md"}