{"_id":"gmail-getter","_rev":"10-1ae12b976481db5c753ff49302b6c802","name":"gmail-getter","dist-tags":{"latest":"2.4.0"},"versions":{"1.0.0":{"name":"gmail-getter","version":"1.0.0","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@1.0.0","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"3adf511ec589c73d58a6336d1a063152ac9808aa","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-1.0.0.tgz","fileCount":25,"integrity":"sha512-7fW90rkP2HXGSESRllOCleJPYhZuF+mi+wAYTAwux/AHxBzyImUeBpmshNGwOGypU1MtNwvY0qgOBfDp/tGFng==","signatures":[{"sig":"MEQCIEWX5LVNiGWKEa6LtMkdmesROc2JHKJnGm0lTgPczBESAiBUsgeZsNSMRk0efDfUde8Iu6BeF/+WWTJ8QwWF220TrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7850ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZug//fTAl7NwVdFx/Mg25QiXwAJ9zSmnoTUgR/ZpQ9xScZy67ViKA\r\nsVHeZrY0e0Qk9JJpgEJ0dyL4PLxXTzBu3b1Sg4nksQlAbWY22pBmn/pkKPwo\r\nXzdck/CcRhv8U4WOZ+wYlEw0timKndKmnGQZvJmyoiSfMSO4GeEJOKWahjeS\r\nAVx8YzgnDKiKcvjm9EhtngHfyOqmEDFYKu5ljlVyuUB6JWK7Jwh+IqQZpOfc\r\ncL+y2AaOUgzenAjbeRlMW7sIFX0EDFV/nBuWhPZCjfrL2PLXtBowRWmc8m9c\r\npot6RYeYn+N0EOB5LyGuYWgLNbCTlE7tt1B23UBTObyyELzrrEbjZIWwnNvj\r\nysFrpI7dmC+FnegC7wZZCZDhHfcz3xaLQbJB7SJTSuw8249xZcIN0R+//k8d\r\n8d0wFe9niOymk5Ew8F86+M0I8+83OVYxgxIZPqRRYW2x7Y2QEd5eX2iTdBtp\r\nd0okJbdxlqSbGjqZFlewasqVgXzKdYlI95O2kz+oC6drv5WDyzQkNPowx34e\r\nNLLga+Z6otCKSzi/iFLi87K1Z0T5ffm4e/vDti4m+g/SbzkfGcZCHxqDTrRE\r\neHRiB/ZwPONBPCvrbFoFOjeNrP8H494o6X1MUa+YTfqU/KuJ6L6xjuk2au4T\r\nhPylirbEWEuGgWh54XKOVlo99RJsPw7QEYo=\r\n=65xu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"0597f62f987574ac81c4092929485e0cc7f404d0","scripts":{"lint":"prettier . --check","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.3","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.19.0","dependencies":{"axios":"^1.3.2","@google-cloud/local-auth":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.3","dotenv":"^16.0.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","prettier":"^2.8.4","typescript":"^4.9.5","@types/jest":"^29.4.0","jest-json-schema":"^6.1.0","@types/jest-json-schema":"^6.1.1","ts-json-schema-generator":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_1.0.0_1676660340065_0.45927933846853874","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"gmail-getter","version":"1.0.1","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@1.0.1","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"a7f73c8e2289ecb935ff7c3a295f5bcef589bee5","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-1.0.1.tgz","fileCount":25,"integrity":"sha512-HLnzOFDtMuzZTr2pMkQENYr2UyO+ju0sbyM3RMrWuRUaQ49uhkwB3bHtyHdBOs4z9RFjVMP8QmBXgEvuoQU2jg==","signatures":[{"sig":"MEQCIDkprj04h5pvpMSVlOGIBkyWqxxVp/lsw8yuFihzF4a4AiBxC/PC3sdQ5tLBoFpKDzTFha11b0IllxSqhQYVKhn+xA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj79OJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpk/A//ZWs+GXVfIfsXigRqphc4LhHvK8/nEeWRFkPLrTwjI81QKgnc\r\ncjpWaqaIrBcENCwsaqEZsaxdZOujC8NWwsNRcD87BQH2NFpO+qLVP7zQaPSU\r\n46raYcCATPK5JQZjErX+RfBACiSExDc3tpo3mwlN4Vtqr7vPh58kpanwZ6QR\r\nmvfIRotRUW9VCur/yB6ntgUrh56zmz2i2AFE7NKCq9grHnrv7RYpOoFHGjp2\r\nFU81B4aumgru3ep1LxAdTdGCQj5Icyju9tMc9upg28XiwTpYb3AqKzGw/UzV\r\n71FOBVUnnf+EQ2Xf8lfBBevWwmtGFF9MPVNgWF4xHHVGMrJWVy4fvuE3XRRX\r\no3ewXaTSMAvD0PPK0oeZ1FFNDjUcV6jF1F+CDW7Ax56Ug+vbfzRH9PlQI9s/\r\nCYEPgc80UKnG37tYFadKU4XdPNOXwc0XhQHpBb8+5pNsnBeL1C6ef77nee81\r\naTlG+CyPkdeOLQIDAc9iSoEbafnq2eNmxZUhsozliBG4nRUkfBiRErNtAAgH\r\nVTIz95MCCORnXLlXAFxc8lh/GRUJ0YM4WHwJ9buzKTZ66RfJmwAs8hn7jS5O\r\nmayzMfUNFBE+ljRfkTODcU3PwUC4bLrozeL3NeG5e85+WOE26AGNxIwPq/Kc\r\nzvwyysgbv1PzIBBVZzhC4ATZnucZjm313r0=\r\n=ShjC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"7dcf120c5e56b50af05e340460c90a71a880b6b9","scripts":{"lint":"prettier . --check","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.3","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.19.0","dependencies":{"axios":"^1.3.2","@google-cloud/local-auth":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.3","dotenv":"^16.0.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","prettier":"^2.8.4","typescript":"^4.9.5","@types/jest":"^29.4.0","jest-json-schema":"^6.1.0","@types/jest-json-schema":"^6.1.1","ts-json-schema-generator":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_1.0.1_1676661641337_0.7491914180117014","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"gmail-getter","version":"1.0.2","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@1.0.2","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"413a43957dd5cb73657beed65d5625810ce7362a","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-1.0.2.tgz","fileCount":25,"integrity":"sha512-WV4x6kvRE3CqLZ3gJ4y7125XUmg1RojXpfeFOtYXR3s+3ViDCVellIkbrVB2BVzUAzKzQGPnZsCHtnS2XTkYRA==","signatures":[{"sig":"MEQCICBAccaamoc+/ybyOjpp90EpOdJnkWlZET8RFE4b8DgCAiBb1t28vI6mh8WuHSZDREkVBYmx0yJzcAArqxZHt+NRcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8gHtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpqdw/9E17YjTNnNL+fEFJ0QLA11xzB+C82v9ROJK0QW0ikmDWpucvC\r\n7/vLOIuz6zEttXILBrTKKCuTp0qhFP5HVPyFxxxqrOGjVJe7lfnm+6k8hYuo\r\ncSqG5XN/exf5dum4typn7GeupiRTvrFUtes50UpjNLUtX/PFSPzBr/+W16g/\r\n1+Lm9jfvDWgMoRPh8THivw2hDb2oWdxNxgIYlLXy28cFXs2wfsrl3Nm0EObE\r\nc8KW9qjUquWEZCEjM/vfQSiaAxzYDjqeGX7gKor1Z6VZ4qERbj7m7sKuRQKD\r\neTFHKc2I3i78q29a+ZVhxr/4hIEdrj6gzLZAMk2FnpXrDzzkg3+tz2e7h4cI\r\nvKIFMtvT6V2Pk5PVsgWc2xcdh7JC1WR150HzZ6KYS0PTjj7G4lArOSXPlIxC\r\nxWKg0zUFDXt3WAEXBh3euJqjqnA4KYMUnFqZTJ1AyBCbyIeBkU7H7WzpQ2Y7\r\nnWC+l9VVBA2C1d2AUt73n1lrjEa1A0wR6EJWlPKHX7G9ZEjd5xy2snGIbtn7\r\nEi3PDPQIv+BGXYuWxjiuicOcq1VumQ/n1AyBtzyMrl3kAuo3uKBGsGGq57SN\r\nw+seLFyfJRzoVtLPqWvvTf12Lb8n+bX52/T5v0XXSFY8r8394H/7YbHuJ3HP\r\nnPuPdEL+5SjKg+6Ra/l5Vyhgpw2N70IIy8o=\r\n=at/T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"d5e539e96538f745a584319251569d3b16beebde","scripts":{"lint":"prettier . --check","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.3","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.19.0","dependencies":{"axios":"^1.3.2","@google-cloud/local-auth":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.3","dotenv":"^16.0.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","prettier":"^2.8.4","typescript":"^4.9.5","@types/jest":"^29.4.0","jest-json-schema":"^6.1.0","@types/jest-json-schema":"^6.1.1","ts-json-schema-generator":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_1.0.2_1676804589531_0.2444922810238741","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"gmail-getter","version":"1.1.0","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@1.1.0","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"f9506c60dc6de2af29aa37af8f9e46a3cdf921ea","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-1.1.0.tgz","fileCount":27,"integrity":"sha512-nWndhzRVIZvH0bM3fLZJfQrZq3UFgV0zxv5dFpPGZvcL5YNFQvQPDJlqxQSotQ/Y2Kiuw2W1+283vH0rErh25A==","signatures":[{"sig":"MEYCIQD4z4P+Mn6pIIq8NepSHJZ9oB4vEUyY8BKm2GaOapnIewIhAPEasvArUOntTvu7WTk2V4w5/9UBz9Tmnmxyd++GOQYZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSWD3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9NA//UkdPO3ukZj84tPpwi4JACLizqGIyLLWW2Kx9voDJl4s5dyum\r\nfXgmNHo/mXSdiKO4lOR4lkpe6dUh3eCMDtILiSqPVWr++sU3DEbTlFgPHkYF\r\nJymM+3wA1UEXtNkqgQ3toSWE7hGp9aW14EgUE7mD5aFTA/9Lj1v1dxwiJT9z\r\nQC4zFA9J4VwzsmV54xz9cAkgKz60VM1FVLq2gCFg61sDqvJ0L2JetDCg3VL0\r\nYQUN/Jp2hwhfwE48jefJxdpczCx2dNFSuu0olty5vN2UnEofTrh9os+wS7fD\r\n3GAmsuWcCfXbVky89i5Z75hDNyLij2AggX7HitZ7nkKX6MHlhCbFluohLIEX\r\nJykPgglGk9g+VNqU9uBkBDFs0hyw8fyQYHBSLUzyhO6qc+XeUm9Mza1SfDKy\r\nfghSTINgORjlUCg2ioITXQOzx8F+f8yFzmdW69HiQMQRTCUHfTIKEtbaPdek\r\nmBXy+q6lI2PN3z1qQ0Y4M2yykSg+DdcwZ0Ya/tDYAlcfoyda91ijQAJrfF1+\r\nuvSKqJHFvgij+8vNt2kxYR8HgEWVf6cetuaGt0VbYdwJyiXLH+JuIP3dzlaE\r\nyOW+2m9xe8LGkT9j7XIlVDGhd2S7I7EkobgE4O05Sbu1AfvUaAx0ukPZgDZ8\r\nHRp3jQER2W1+VI9PxCNxtqWVGCddWLGBkj4=\r\n=SsUN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"1802ed587a63a7bf0b16c4b4544a829666fb87ac","scripts":{"lint":"prettier . --check","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.4","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.20.0","dependencies":{"axios":"^1.3.2","@google-cloud/local-auth":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.3","dotenv":"^16.0.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","prettier":"^2.8.4","typescript":"^4.9.5","@types/jest":"^29.4.0","jest-json-schema":"^6.1.0","@types/jest-json-schema":"^6.1.1","ts-json-schema-generator":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_1.1.0_1682530550807_0.06663795858463972","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"gmail-getter","version":"2.0.0","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@2.0.0","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"c649d043c897c934e80cfdb0fadac285f174cd6c","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-2.0.0.tgz","fileCount":29,"integrity":"sha512-mkQtqCRuRRS6E9LLGQVi//W87i1YdRarhGNRgJGARzXuX4bTy//xeBXeLjWSaEz4ay90uZw/BTovR79Na09vsw==","signatures":[{"sig":"MEYCIQCLaeIWZBvnn6/ZZlx0W9AFuCbc3Ymd1b2T8jkY2GeP6gIhANEtfqf4YpenD/6/C9MwQeX/363FkJZmsnvZWvIQNCXJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22859},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"5b28b639acd6e42c3ef93c8574f38c6191baeb70","scripts":{"lint":"prettier . --check && eslint src/**/*.ts tests/**/*.ts jest.config.ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different && eslint src/**/*.ts tests/**/*.ts jest.config.ts --fix","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.4","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.20.2","dependencies":{"axios":"1.3.2","@google-cloud/local-auth":"2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.3","dotenv":"16.0.3","eslint":"8.55.0","ts-jest":"29.0.5","ts-node":"10.9.1","prettier":"3.1.1","typescript":"4.9.5","@types/jest":"29.4.0","jest-json-schema":"6.1.0","eslint-config-prettier":"9.1.0","eslint-plugin-prettier":"5.0.1","@types/jest-json-schema":"6.1.1","ts-json-schema-generator":"1.5.0","@typescript-eslint/parser":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_2.0.0_1706001958726_0.1344318638106723","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"gmail-getter","version":"2.1.0","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@2.1.0","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"90f444cfa622548dc4412349f9b5906042c0c111","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-2.1.0.tgz","fileCount":25,"integrity":"sha512-gPszLEuUdHudU6sWRUim87ROin4xFnFFTgttMLt/NZIFe3ye15W3ynhgzGaOmJuuIEcIiK2DKWTmvBb7++xQow==","signatures":[{"sig":"MEQCIC/pjAANTKIBpWQOzEqLTGT2xiGL05GBOyrlR8StADTOAiAy/0uf3Logc2sXzH8XQjc06cROmEzNB2r/sTEJ5s5YsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22427},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"558bdf8784822baf108daec68b01529d50018206","scripts":{"lint":"prettier . --check && eslint src/**/*.ts tests/**/*.ts jest.config.ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different && eslint src/**/*.ts tests/**/*.ts jest.config.ts --fix","typecheck":"tsc --noEmit","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.4","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.20.2","dependencies":{"axios":"^1.7.2","@google-cloud/local-auth":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","dotenv":"^16.4.5","eslint":"^8.56.0","ts-jest":"^29.2.3","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.5.4","@types/jest":"^29.5.12","jest-json-schema":"^6.1.0","google-auth-library":"^9.12.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@types/jest-json-schema":"^6.1.4","ts-json-schema-generator":"^2.3.0","@typescript-eslint/parser":"^7.17.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_2.1.0_1722114914864_0.6490006007338427","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"gmail-getter","version":"2.2.0","keywords":["gmail","test","api"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@2.2.0","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"3c71cd0a8f88f9d04064d133123a2b04500fa290","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-2.2.0.tgz","fileCount":25,"integrity":"sha512-QhihWZP9waQFVll/WVm5DyByYrcAlXqNK/y6oMGjmrmttNxNHeTZ3MKDmQwihe5W9HhCc6wWQWCBYpajMM+T2A==","signatures":[{"sig":"MEYCIQCJl+xVA0xdCfQpnmFGHbj0vOYvvTgVKET8sAN5iP7hEAIhAIzMy9jk0NjypIG+i7EaaaQJ2QJjAehElgwnZqriCGLT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23262},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"7a8ab768f8a6b309f4b625ed625703f53adf6c20","scripts":{"lint":"prettier . --check && eslint src/**/*.ts tests/**/*.ts jest.config.ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different && eslint src/**/*.ts tests/**/*.ts jest.config.ts --fix","typecheck":"tsc --noEmit","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"8.19.4","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"16.20.2","dependencies":{"axios":"^1.7.2","@google-cloud/local-auth":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","dotenv":"^16.4.5","eslint":"^8.56.0","ts-jest":"^29.2.3","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.5.4","@types/jest":"^29.5.12","jest-json-schema":"^6.1.0","google-auth-library":"^9.12.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@types/jest-json-schema":"^6.1.4","ts-json-schema-generator":"^2.3.0","@typescript-eslint/parser":"^7.17.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_2.2.0_1730455421849_0.5134162382725649","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"gmail-getter","version":"2.3.0","keywords":["gmail","test","api","qa"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@2.3.0","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"93e5aa656e01ab5661276de17e3faae94f82a123","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-2.3.0.tgz","fileCount":25,"integrity":"sha512-A2nkNjuhsq7uh4CHZqrKY7lE5zYVP5UdaREOChXhApfrpJnH7l3bnsvxNVlPTo7qDzjiG7aqJ/7mbeKgPgmjzQ==","signatures":[{"sig":"MEUCIQCD6T0FYvY1z0tcl7TN/ha2rpAnZGxY8Nr7y4TxtQyj6gIgGvqbd/Ngb3qIaPaikvCBlkXRIIEEceTLOe+NswIW1Pk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23628},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"df9aff1cff298bb948378fd9c5a4491148f35874","scripts":{"lint":"prettier . --check && eslint src/**/*.ts tests/**/*.ts jest.config.ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different && eslint src/**/*.ts tests/**/*.ts jest.config.ts --fix","typecheck":"tsc --noEmit","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"10.7.0","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"20.15.1","dependencies":{"axios":"^1.9.0","@google-cloud/local-auth":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","dotenv":"^16.5.0","eslint":"^8.56.0","ts-jest":"^29.3.4","ts-node":"^10.9.2","prettier":"^3.5.3","typescript":"^5.8.3","@types/jest":"^29.5.14","@types/node":"^22.15.28","jest-json-schema":"^6.1.0","google-auth-library":"^9.15.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@types/jest-json-schema":"^6.1.4","ts-json-schema-generator":"^2.4.0","@typescript-eslint/parser":"^8.33.0","prettier-plugin-organize-imports":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_2.3.0_1748633554583_0.28135631920109505","host":"s3://npm-registry-packages-npm-production"}},"2.3.1":{"name":"gmail-getter","version":"2.3.1","keywords":["gmail","test","api","qa"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","_id":"gmail-getter@2.3.1","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"homepage":"https://github.com/bormando/gmail-getter#readme","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"bin":{"get-refresh-token":"dist/get-token-script.js"},"dist":{"shasum":"496912a4db2fa56caafd4d592eb03986edcbb13e","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-2.3.1.tgz","fileCount":25,"integrity":"sha512-kLzDeNJoVfQd0D3dk1XYMy4Skcgt1keyCR0jYeQrtVMQCObvyQWJ2mF/sfrp0dxSJKDRqrzbzyBfKN8nhAyqzg==","signatures":[{"sig":"MEQCIDIcZuqHGVGnSi52rdLyYXcqbY8X+hPKLyVRuI/XgQFAAiBU1bieG7Y8tMq5XDkCucI3UZhvIJO1bzzDTKYFZiHLCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23629},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"8077e54894601d7a0216b456c988508480501add","scripts":{"lint":"prettier . --check && eslint src/**/*.ts tests/**/*.ts jest.config.ts","test":"jest","build":"tsc -p tsconfig.build.json","format":"prettier . --write --list-different && eslint src/**/*.ts tests/**/*.ts jest.config.ts --fix","typecheck":"tsc --noEmit","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'"},"_npmUser":{"name":"bormando","email":"squier7@gmail.com"},"repository":{"url":"git://github.com/bormando/gmail-getter.git","type":"git"},"_npmVersion":"10.7.0","description":"A simple tool that gets emails from the Gmail API","directories":{},"_nodeVersion":"20.15.1","dependencies":{"axios":"^1.11.0","@google-cloud/local-auth":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","dotenv":"^16.5.0","eslint":"^8.56.0","ts-jest":"^29.3.4","ts-node":"^10.9.2","prettier":"^3.5.3","typescript":"^5.8.3","@types/jest":"^29.5.14","@types/node":"^22.15.28","jest-json-schema":"^6.1.0","google-auth-library":"^9.15.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","@types/jest-json-schema":"^6.1.4","ts-json-schema-generator":"^2.4.0","@typescript-eslint/parser":"^8.33.0","prettier-plugin-organize-imports":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/gmail-getter_2.3.1_1753825887900_0.23297426231929252","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"gmail-getter","version":"2.4.0","description":"A simple tool that gets emails from the Gmail API","main":"dist/index.js","bin":{"get-refresh-token":"dist/get-token-script.js"},"scripts":{"build":"tsc -p tsconfig.build.json","generate-schema":"ts-json-schema-generator --path 'src/**/types/*.ts' -o 'tests/schema.json'","test":"jest","format":"prettier . --write --list-different","lint":"prettier . --check","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git://github.com/bormando/gmail-getter.git"},"keywords":["gmail","test","api","qa"],"author":{"name":"Dmitrii Bormotov"},"license":"MIT","devDependencies":{"@types/jest":"^30.0.0","@types/jest-json-schema":"^6.1.5","@types/node":"^25.5.0","dotenv":"^16.5.0","google-auth-library":"^9.15.1","jest":"^30.3.0","jest-json-schema":"^6.1.0","prettier":"^3.5.3","prettier-plugin-organize-imports":"^4.1.0","ts-jest":"^29.4.6","ts-json-schema-generator":"^2.9.0","ts-node":"^10.9.2","typescript":"^5.9.3"},"dependencies":{"@google-cloud/local-auth":"^3.0.1","axios":"^1.13.6"},"gitHead":"2ae9f481e52ed2fb4b3fc6f62ebf0a6d7a41cb93","types":"./dist/index.d.ts","_id":"gmail-getter@2.4.0","bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"homepage":"https://github.com/bormando/gmail-getter#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-oFEo1PfBJuO1rtezlYvNxesaZ0hQYhmCvzJ6k5SyfnXMW7n/dqLiMPuuGCiP4ESjKC6ekD2g94iu3mCEuO2u6A==","shasum":"dbe95b8c7e8166d02134ab673db036717ad35543","tarball":"https://registry.npmjs.org/gmail-getter/-/gmail-getter-2.4.0.tgz","fileCount":25,"unpackedSize":24698,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gmail-getter@2.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDo0jZFAcm8QZ6vLWNRsiUmaTKYpYwfQb/W/umwWpij7gIhAPnuZ/cr2lietzskXHCN+Xz9+TONtSIUwCIhziqoYP7C"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:978b9987-ee79-402c-8cac-9ad15d0974d6"}},"directories":{},"maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gmail-getter_2.4.0_1773698678295_0.16818678239851081"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-17T18:59:00.064Z","modified":"2026-03-16T22:04:38.746Z","1.0.0":"2023-02-17T18:59:00.288Z","1.0.1":"2023-02-17T19:20:41.494Z","1.0.2":"2023-02-19T11:03:09.683Z","1.1.0":"2023-04-26T17:35:51.005Z","2.0.0":"2024-01-23T09:25:58.913Z","2.1.0":"2024-07-27T21:15:15.029Z","2.2.0":"2024-11-01T10:03:42.032Z","2.3.0":"2025-05-30T19:32:34.816Z","2.3.1":"2025-07-29T21:51:28.083Z","2.4.0":"2026-03-16T22:04:38.447Z"},"bugs":{"url":"https://github.com/bormando/gmail-getter/issues"},"author":{"name":"Dmitrii Bormotov"},"license":"MIT","homepage":"https://github.com/bormando/gmail-getter#readme","keywords":["gmail","test","api","qa"],"repository":{"type":"git","url":"git://github.com/bormando/gmail-getter.git"},"description":"A simple tool that gets emails from the Gmail API","maintainers":[{"name":"bormando","email":"squier7@gmail.com"}],"readme":"# gmail-getter\n\n## About package\nA simple Node.js client that gets messages from Gmail API via http requests & OAuth. \n\nContributions are very welcome!\n\n## Installation\n> npm install gmail-getter\n\n## Requirements\nTo log into Gmail API you need to obtain credentials: Client ID, Client Secret, Refresh token.\nThese credentails will let you get an Access token, which is required in further requests (like getting list of emails or a single email and etc.).\n\nSteps to go:\n1. Create a project in [Google Cloud Console](https://console.cloud.google.com/).\n2. Create **OAuth credentials** in [API & Services](https://console.cloud.google.com/apis/credentials) section (_preferably, select **Desktop** app there if you need it for automated tests_) and then download it.\n3. Enable [Gmail API](https://console.cloud.google.com/apis/library/gmail.googleapis.com).\n4. Obtain a Refresh token.\n\nTo get a Refresh token - simply execute a command in a project root:\n> npx gmail-getter get-refresh-token\n\n(or anywhere else if you've got the package installed globally)\n> get-refresh-token\n\nYou must put `credentials.json` file (p.2) in a place where you execute the command.\n\n> [!WARNING]  \n> Credentials file name is name-sensitive - rename it to `credentials.json` if it's named different.\n\n> [!IMPORTANT]  \n> Refresh token expires after some time, especially if you don't use it for a while. Keep that in mind, since you'd need to generate a new one from time to time.\n\n## Usage\n### Import\nImport whatever you need from the package:\n\n```ts\n// ES6+\nimport {getAccessToken, checkInbox} from 'gmail-getter'\n\n// CommonJS\nconst {getAccessToken, checkInbox} = require('gmail-getter')\n```\n\nor the whole package:\n\n```ts\n// ES6+\nimport gmail from 'gmail-getter'\n\n// CommonJS\nconst gmail = require('gmail-getter')\n```\n\n### Get Access token\nYou need to get an Access token before you execute other requests:\n\n```ts\nimport {getAccessToken} from 'gmail-getter'\n\nconst accessToken = await getAccessToken(\n  'your-client-id',\n  'your-client-secret', \n  'your-refresh-token'\n)\n```\n\nIt'd probably be a good idea to get it on the earlier stages of a test run (global setup?) and store it as an environment variable.\n\n### Check inbox\nUse a polling function that returns [an email](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/get#response-body):\n\n```ts\nconst email = await checkInbox({\n  token: 'your-access-token', \n  query: 'from:your-email-username subject:Your-Email-Subject'\n})\n```\n\nOptions available:\n\n* `token` is an access token\n* `timeout` (optional) sets maximum execution time for the function\n* `step` (optional) sets timeout between retries to fetch an email\n* `all` (optional) says whether to find a single email or all matching the query criteria\n* `query` (optional) lets you filter out emails you want to find, you can find more about queries [there](https://support.google.com/mail/answer/7190)\n* `logs` (optional) turns on or off polling logs of attempts to get emails\n\n### Parse HTML from email\nIf your email contains html content - you can parse it and even render it in the browser with a browser automation tool (like [Playwright](https://playwright.dev/docs/api/class-page#page-set-content)):\n\n```ts\nconst html = parseHtmlFromEmail(email)\n```\n\n* `email` is an email that you fetch with `checkInbox` function\n\nIf you're maintaining an automated test - this might be the best option, as you can verify contents of the email and click any links inside of it.\n\n### Complete flow example\nAnd that's how you can get an email you need. It'd probably be good to wrap the logic into a method and then call it from wherever you need (tests?).\n\n```ts\nimport {getAccessToken, checkInbox} from 'gmail-getter'\n\nconst accessToken = await getAccessToken(\n  'your-client-id', \n  'your-client-secret', \n  'your-refresh-token'\n)\n\nconst email = await checkInbox({\n  token: accessToken,\n  query: 'your-query'\n})\n```\n","readmeFilename":"README.md"}