{"_id":"@danielcraciun/drive-helpers","_rev":"2-a6d644c1f08c28df6ee8ec7b482aee99","name":"@danielcraciun/drive-helpers","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@danielcraciun/drive-helpers","version":"1.0.0","description":"Google Drive Helpers","main":"index.ts","author":{"name":"Daniel Craciun"},"license":"MIT","dependencies":{"encoding":"^0.1.13","googleapis":"^123.0.0","zod":"^3.21.4"},"_id":"@danielcraciun/drive-helpers@1.0.0","_integrity":"sha512-mUR4U26xWiG6VZczWQEBd29jRCUO/HZUohk1uF7qlGxObtXZHAGtKlZs+3pfsRqU/DkUCDf2YsLPqhQ70A6Skw==","_resolved":"C:\\Users\\danie\\AppData\\Local\\Temp\\a7abaf47e5f6063c58d5bf1960593326\\danielcraciun-drive-helpers-1.0.0.tgz","_from":"file:danielcraciun-drive-helpers-1.0.0.tgz","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-mUR4U26xWiG6VZczWQEBd29jRCUO/HZUohk1uF7qlGxObtXZHAGtKlZs+3pfsRqU/DkUCDf2YsLPqhQ70A6Skw==","shasum":"185153a08dc345b5a1e8346efbdb834e2307c28f","tarball":"https://registry.npmjs.org/@danielcraciun/drive-helpers/-/drive-helpers-1.0.0.tgz","fileCount":5,"unpackedSize":14719,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFj+54YPJZKly6fxcoonbnPEigLuxpu8RUv93GG5XhNQAiAQZSTsgAV4YhJK6iPX+nwWGwzQSue43fyHnGZY5tsg+A=="}]},"_npmUser":{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"},"directories":{},"maintainers":[{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-helpers_1.0.0_1690484215937_0.1403099746871359"},"_hasShrinkwrap":false},"1.0.1":{"name":"@danielcraciun/drive-helpers","version":"1.0.1","description":"Google Drive Helpers","main":"index.ts","author":{"name":"Daniel Craciun"},"license":"MIT","dependencies":{"encoding":"^0.1.13","googleapis":"^123.0.0","zod":"^3.21.4"},"gitHead":"81f31a5fbef0e5b242ce6a86cd65cdc51993a402","_id":"@danielcraciun/drive-helpers@1.0.1","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-s+MKKnMvx/XZQi26qC+MiBdObfS7YoBDP2ZWE+KwdpVHEnlHU5YvqNKlkmixNE3zV3V31T9NCNwvObWVIvvvng==","shasum":"68dd1a72f6a9aa64d7ea994bebe20c96a0012f03","tarball":"https://registry.npmjs.org/@danielcraciun/drive-helpers/-/drive-helpers-1.0.1.tgz","fileCount":6,"unpackedSize":15260,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIlb3TdWhLul8X6RKitEmpPLbu1e2ap02wBBXBRGR2KQIhAK6sgQxzKEgmn4k7XNEx4qfouULupXdy7Vrs3x3Xnpqo"}]},"_npmUser":{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"},"directories":{},"maintainers":[{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-helpers_1.0.1_1690484949117_0.9414371737499445"},"_hasShrinkwrap":false},"1.0.2":{"name":"@danielcraciun/drive-helpers","version":"1.0.2","description":"Google Drive Helpers","main":"index.ts","author":{"name":"Daniel Craciun"},"license":"MIT","dependencies":{"encoding":"^0.1.13","googleapis":"^123.0.0","zod":"^3.21.4"},"gitHead":"ea36fd87550f42bac61cca7b7fcc04c17eb63a71","_id":"@danielcraciun/drive-helpers@1.0.2","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-lesyGNCwLA1LJ4mDrAgmwjXjBuT1MjnKk95+MhSZz1Bm5aGJHIRqhqDCovO48dWlwYV6Y1EjXF+/OXxDOeh/zQ==","shasum":"6c7456749752a191ecce14f9505168fd3136e0a5","tarball":"https://registry.npmjs.org/@danielcraciun/drive-helpers/-/drive-helpers-1.0.2.tgz","fileCount":6,"unpackedSize":15320,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxqeohOrzHV0+hKnTVOZ5UGZE0o41N1yldFZN/y3bK+AiBPEBJr2/lvYPBNNd06I2nelPsnv/62oVPtJkf/QtsP0Q=="}]},"_npmUser":{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"},"directories":{},"maintainers":[{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-helpers_1.0.2_1690485223439_0.8116783136595984"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-27T18:56:55.868Z","1.0.0":"2023-07-27T18:56:56.177Z","modified":"2023-07-27T19:13:43.774Z","1.0.1":"2023-07-27T19:09:09.291Z","1.0.2":"2023-07-27T19:13:43.604Z"},"maintainers":[{"name":"danielcraciun","email":"danielcraciun9174@gmail.com"}],"description":"Google Drive Helpers","author":{"name":"Daniel Craciun"},"license":"MIT","readme":"# Version 1.0.0\r\n\r\n## Drive Function:\r\n\r\n```ts\r\nDrive(client_email: string, pkey: string): drive_v3.Drive | null\r\n```\r\n\r\nTakes in your service account private key and service account email to authenticate\r\nvia GoogleAuth.\r\n\r\n## getNamesAndLinks Function:\r\n\r\n```ts\r\nasync getNamesAndLinks(drive: drive_v3.Drive, ...folders: string[]) : Promise<Files | null>\r\n```\r\n\r\nThis function explores the folder tree until it reaches the root folder, then returns the links and names for each file.\r\n\r\nHere is the Files type for your reference:\r\n\r\n```ts\r\ntype Files = {\r\n  name: string\r\n  link: string\r\n}[]\r\n```\r\n","readmeFilename":"README.md"}