{"_id":"goauth-cli","_rev":"2-38667b53a57b18f57729d7e595b2acd0","name":"goauth-cli","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"goauth-cli","version":"1.0.0","description":"Dead-simple Google OAuth v2 login for the command line.","main":"build/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile","posttest":"npm run check"},"author":{"name":"David Street","email":"street.davide@gmail.com"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","googleapis":"^40.0.0","open":"^6.3.0"},"devDependencies":{"@types/node":"^12.0.8","gts":"^1.0.0","typescript":"^3.5.2"},"_id":"goauth-cli@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"dstreet","email":"david@davidstreetdesigns.com"},"dist":{"integrity":"sha512-IYH70OsZRZqCoCO5LjCgo2XUvvIkHQvWVRtoS7ibFrg/f5x1/vUdIsrFPA4rxAJSjrP49Lk1P77gEZ0MGSICLQ==","shasum":"501be2375acfe9543cc4bd0a299604ea6e6d7cf4","tarball":"https://registry.npmjs.org/goauth-cli/-/goauth-cli-1.0.0.tgz","fileCount":3,"unpackedSize":13100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCP8hCRA9TVsSAnZWagAALvMP/jw/nnK2kbO8TlwPnjcH\n5I3MbWGuzLNpAJ9nI4QhdzJMSjocmdLCvv2/anERqhl2IsWn1cCu7g45mUtf\nBBpVTlSbh7LBi06YzbmSxw04u7H2e65OdijqhRufE0aqnhOKNpnHQ8/JoTuE\nsiSCStLDjkBWJvlIJhskBK5712LRDq7Owk74xMuHcD4OvV0MTmHqlGhYDhxj\nN5+3B6habbsWmMdR1ieVtZgCKrysrz9wRLHoEKaaQnQ39txgq9a7q8hDw5nq\nNc6OYbKF+ROqJ2kfuVSbTtqCbaXU5eRYmCJLIz+7jzVxwCNxZIoSqQIpQDOf\nZZEuVxWTjfek391GW3y+bDBEukRUawOlp3K6S+kYyXlcJ8a+mGlLwOCvs0YT\nt9M8HQqL3dZc8SNXYigXiQIHkrM/wyluw5wcYKnRk32leDfUPYp9oZ6z6x4x\nWJRar+aXPZFCFnqMQQWRVrOq72h3m81JAyGeQE+Komxy60d6Ad520N8SgTSO\ndteSYnjjCMAftBws28PGcMoEY0xI7BoNOWyWm2WiMAA0MdpbnXrl1R8lMxlS\nq8JNhZkiNzRR+fpiyGKaTokgEb0Ogl8YAT9fO0uDWmPJW52ZuE9x5sSowiTb\nOwa4Am5z3yNIyJ6x9hkQhKvdI5U4HUKxtRBvUGHsb2LbWSw8ManUR2IkCuMT\nWbq9\r\n=d2Am\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVKMUQKdikvGn5hf8H0wBxMzwNDmkZCWte11KJV9J88AiEArMME8DDUkraHiQNTTUb1aMj91ImdLmicbWv3/A+2e0Y="}]},"maintainers":[{"name":"dstreet","email":"david@davidstreetdesigns.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/goauth-cli_1.0.0_1560870687463_0.7788918740124617"},"_hasShrinkwrap":false},"1.0.1":{"name":"goauth-cli","version":"1.0.1","description":"Dead-simple Google OAuth v2 login for the command line.","keywords":["google","google api","oauth","oauth v2","cli","command line"],"main":"./lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile","posttest":"npm run check"},"author":{"name":"David Street","email":"street.davide@gmail.com"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","googleapis":"^40.0.0","open":"^6.3.0"},"devDependencies":{"@types/node":"^12.0.8","gts":"^1.0.0","typescript":"^3.5.2"},"gitHead":"c8065b10b67e2d2e95f666067344bab07c6ca6a8","_id":"goauth-cli@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"dstreet","email":"david@davidstreetdesigns.com"},"dist":{"integrity":"sha512-Sl6+49H8QC9Tnan6EJl5z/10aeM77lGklCyhwAg62MJJq7yLi9Ueop0Vy9jNvZo8w0bf/kHzwYjqnz8jEIX/zw==","shasum":"df11177830c4385d8587c683d2bd3b13de56bcd8","tarball":"https://registry.npmjs.org/goauth-cli/-/goauth-cli-1.0.1.tgz","fileCount":6,"unpackedSize":19646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCQHsCRA9TVsSAnZWagAAs1QQAJdXWvuEARHDKrsJy9EG\nbrRTo7jZ+RwVId2ZYr4Jq8o+Hh3Ha2GLb8vn+uchXWJjhWbA+P3Usvhm5sH6\nWysHFp/it08dw7EvQl+Um6tb0e4Np7lIYv0/5MUZf4y359GQ0iG+XQS5ArnP\nlHUS6zFdqOOWl+HKIjLIRP0ZimL1TsDSI46o+L3theK7qSr2czRS06x/yEgO\nzemm4P/lSKuw/QKptTj+lva9mbisDIJh07Mc7M6Q4Bh0+wkengqcb6lCXJfS\nw8kU0kSm+jfIHrWrhMx0F5CjebVNmVP97Py9jZs65AMXEb2Lit1cLLS2jgk9\nI6qrhmyFfPsFHeGLzaARRBkONuUuJ4e+UM4IQmGE4rLUb24cZfRQaWNHCnLk\nmvaJH11keA0JMIiBF68/4TYtA1ualiteX+M89CnOVcCTOLEhgmUpAPKCdH4v\n5TVxOAzj1u+BTTx0ZyeSkHr+Meco5eojnUbh1L7yydVv/RxDI2OzvHoP/jyz\n2f+x2tJ5LS0qIdfTYglAj5wtfatdDLKW/14DB1uuhd6CSLPGTYmTXW1jUXp4\nSqX41ZLkAuIPXMoiJrDIkJUs+iAH8oT6pYckOKeU1g/oeuVenl/YbWZsE2Ow\nDZaSXddhmb33fbWdZeuZpgNnkTstvPwNW7bDXOfdk/akVPaZaDEPyaTa0GSE\nMMAC\r\n=9Gbh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhuVo8SRjg/Dfipwo3d6raccZkFnt5pnQEbSyVpBJAkAiEAkIWFOZAB6H30mHDxzGSXp52T4LkLtY4K0utpzgW2ND0="}]},"maintainers":[{"name":"dstreet","email":"david@davidstreetdesigns.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/goauth-cli_1.0.1_1560871401662_0.5086399282783252"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-18T15:11:27.463Z","1.0.0":"2019-06-18T15:11:27.596Z","modified":"2022-05-03T23:27:17.743Z","1.0.1":"2019-06-18T15:23:21.754Z"},"maintainers":[{"name":"dstreet","email":"david@davidstreetdesigns.com"}],"description":"Dead-simple Google OAuth v2 login for the command line.","author":{"name":"David Street","email":"street.davide@gmail.com"},"license":"Apache-2.0","readme":"# goauth-cli\n\nDead-simple Google OAuth v2 login for the command line.\n\nGoole OAuth v2 requires that users authenticate with Google via a web interface\nprovided by Google. This tool implements all the steps necessary to get\nthe refresh and access tokens in order to interact with the Google APIs from\nthe command line.\n\n`goauth-cli` generates the login url and immediately opens a web browser to the\ncorrect url. It also starts a temporary webserver to capture the authorization\ncode sent back by Google. Once the login process is complete, the webserver is\nshutdown.\n\n## Install\n\n```\n$ npm i goauth-cli\n```\n\n## Usage\n\n```js\nimport { GoauthCli } from 'goauth-cli'\n\nconst auth = new GoauthCli(CLIENT_ID, CLIENT_SECRET, SCOPES)\nconst authClient = await auth.login()\n```\n\n## Login options\n\n- `callbackport`: The port that the webserver will listen on. Defaults to a\nrandom, available port\n- `callbackPath`: The callback url path. Defaults to `/oauth-callback`.\n\n## License\n\n[Apache License Vesion 2.0](./LICENSE)\n","readmeFilename":"README.md","keywords":["google","google api","oauth","oauth v2","cli","command line"]}