{"_id":"@acto/gatsby-plugin-drive","_rev":"8-2e75208bd368b17c93294cfeaf4118b7","name":"@acto/gatsby-plugin-drive","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.2":{"name":"@acto/gatsby-plugin-drive","version":"0.1.2","main":"index.js","license":"MIT","contributors":[{"name":"Fabian Schultz","email":"desk@fabianschultz.com"},{"name":"Elias Jørgensen","email":"ej@acto.dk"}],"description":"Downloads and caches a Google Drive folder that you can then query with gatsby-source-filesystem.","repository":{"type":"git","url":"git+https://github.com/fabe/gatsby-plugin-drive.git"},"bugs":{"url":"https://github.com/fabe/gatsby-plugin-drive/issues"},"homepage":"https://github.com/fabe/gatsby-plugin-drive#readme","scripts":{"build":"babel src --out-dir . --ignore __tests__","prepublish":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore __tests__"},"keywords":["gatsby","gatsby-plugin"],"devDependencies":{"babel-cli":"^6.26.0","cross-env":"^5.2.0"},"dependencies":{"babel-runtime":"^6.26.0","gtoken":"^2.3.0","mkdirp":"^0.5.1","request":"^2.87.0"},"_id":"@acto/gatsby-plugin-drive@0.1.2","_nodeVersion":"11.10.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-VjeIpJWePyo7nLUQqLiu12eJYdUKprJSCrYj2m5U58PPyc96ORpPmLeVVHfhp77w/T7+BJ3XT1BB6WLXAwfQzA==","shasum":"3934f3962501db0053537c9aa4cf2c8ff8c165b7","tarball":"https://registry.npmjs.org/@acto/gatsby-plugin-drive/-/gatsby-plugin-drive-0.1.2.tgz","fileCount":7,"unpackedSize":9513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbCmDCRA9TVsSAnZWagAAj5sP/RM2AeN06YvLm9JWinZs\nQ6Futx0aVuGbwHExArh/2i67HmiAOX9NgP2jLLCh+LntSUBCyPG73bAxffGt\nmvpLRgHplEYyxmhixYfbqkhtR2b32k6Gsh4FK8unW/BIUJzdMZSHE9aDNARo\nCEzkXH1lfuVGbIA8XYM3gbWi5ceMAgicEZLNxGnkjgfgzuG7crwJBcxPblEJ\nGvGxoEzYkWVfEZN7NSTF7V6I3M2ghOLl2ojs1BO0llWzQnMp1IN7WlI5Fk5/\noiqQsH1U3rPUQThPlJLvcy6s3/70e2uj/m6js2Y7LjW6f8N7YiuR96O3XUG8\nmBxLT1s9QU6rSvmiAVnTA96qkSBupz6VRPJeHyQ/e94cBt3pqHg/MnBOv4K3\nIBUbR7I6zyzWRXbMDz6gJXsAka4eI4ueevOI0qv0pu1URCV+00tg7WSW5EWI\nrkrmiWTLk2wyBBi/b118AqI4MShTPhtNfSeivggAmoCIBeRh/2q5+axavutn\nrP7Yf8Hk44NCGA/BT6nAGP1MevuqxLa3kcfmA6dBn2YssiRXsmN6xVrs0g9N\n7plD2k16s6fs9DeE/gPIAtGdkq+YgVplTv2iXhuYoTh7WBvJhihJm9dXlbGE\n65ReJyAfs9Tjh7iY1JWsLs1PuqI9+nUMHDpFCHtMrxdQFyAdOModRwssDeUF\nssTg\r\n=4JcM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJNRjH6bGFYUBFHCB3x3R3k33b20A0XHj5bxnI3tFytAiEAz8u3okO2j0xjQYRrMq+sdCRs19t8CpIKEGQTKWsJ+lE="}]},"maintainers":[{"name":"easteryard","email":"cstergaard@hotmail.com"},{"name":"samimaj","email":"sami.majdoub@gmail.com"},{"name":"eliasjorgensen","email":"eliaszakarias@gmail.com"}],"_npmUser":{"name":"eliasjorgensen","email":"eliaszakarias@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-drive_0.1.2_1550592387189_0.2728989084813995"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.0":{"name":"@acto/gatsby-plugin-drive","version":"0.2.0","main":"index.js","license":"MIT","contributors":[{"name":"Fabian Schultz","email":"desk@fabianschultz.com"},{"name":"Elias Jørgensen","email":"ej@acto.dk"}],"description":"Downloads and caches a Google Drive folder that you can then query with gatsby-source-filesystem.","repository":{"type":"git","url":"git+https://github.com/fabe/gatsby-plugin-drive.git"},"bugs":{"url":"https://github.com/fabe/gatsby-plugin-drive/issues"},"homepage":"https://github.com/fabe/gatsby-plugin-drive#readme","scripts":{"build":"babel src --out-dir . --ignore __tests__","prepublish":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore __tests__"},"keywords":["gatsby","gatsby-plugin"],"devDependencies":{"babel-cli":"^6.26.0","cross-env":"^5.2.0"},"dependencies":{"babel-runtime":"^6.26.0","gtoken":"^2.3.0","mkdirp":"^0.5.1","request":"^2.87.0"},"_id":"@acto/gatsby-plugin-drive@0.2.0","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-vNLZ9fFwk/FICuVy9FulUr651zvLbUa1ITK1Ey9N+ARHZuo0Xhcs8baIhArqjL93AIEhTYGInoWik2j/cbKK6A==","shasum":"8392d8fcbd9dbfa1c734f2cf0202ca0210e68057","tarball":"https://registry.npmjs.org/@acto/gatsby-plugin-drive/-/gatsby-plugin-drive-0.2.0.tgz","fileCount":7,"unpackedSize":9641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclM6HCRA9TVsSAnZWagAA/1QQAIA5i1E596v8jmpnLin9\nijaHsvkJF8O4ZBpzGLMeKWrp1pK/fwhel0NzT9doTR620xecg87FCndFJD3x\n0kicKgC1jaORhNMm5redA6xjPjSTUQ1kfiGRYbKPFr8tUF8djxWIqy9JIavG\nLawlbj5Z1oCGpzh02VaXEeUml4ZvL4G77waREXzWtzXDI8W/y4+mEAg2WqZH\np0/uTKvRcrGmO7WF4m/gfKJTRR2OYZnfowW+bbizhDFQJ19OjTcua3ltAF+2\noJiazZHXZFGi+w5sbrhZIEnu8H7O8yvdmDsDMyjrheYiPlZkp2jpugDpebKk\nsUmKrBAqEWfksdN7ZnL8DMR983gUg4vY3XxPhulyhXK6HcRB4/inYdZ6hL2W\nYjku/XLv9SZdwoYYwKk5i5O2CZBNDWRwFEoGQ725G5vBnNgy2tV0j2ajEXhZ\nbGKI+fviQjEyCTDFKqOj5vwYm7ja01PpsjnC/2R8GyAOy5wVaboSOZngk98N\nZJeOhJT2KY3BIoyqBIqCiWydmDEOE5FBtaY9yHC9wZjrB42Mm7PLBKMWH7Kh\nu/OP+qSsxoWmcNghG4cTWWY++A4Bd1WhAHy07Wlp0PMJdlrYGd5H0thP1++7\nNGhtpZUGnQzvKWZOZE4zKOgaBzyugn6p32DSTzvlMrx84vJEmrSBIVn1hPZp\nd2FC\r\n=P2lW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEdVc+48rrwsbEozO8ZVVXnNn4paQI8txLAbO2PBz7LnAiEA8+2KioVopdESmQ9rXM7qh/aRSQuxAwC6QZX26oGs4tM="}]},"maintainers":[{"name":"easteryard","email":"cstergaard@hotmail.com"},{"name":"eliasjorgensen","email":"eliaszakarias@gmail.com"},{"name":"samimaj","email":"sami.majdoub@gmail.com"}],"_npmUser":{"name":"eliasjorgensen","email":"eliaszakarias@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-drive_0.2.0_1553256070965_0.039726826036690976"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.1":{"name":"@acto/gatsby-plugin-drive","version":"0.2.1","main":"index.js","license":"MIT","contributors":[{"name":"Fabian Schultz","email":"desk@fabianschultz.com"},{"name":"Elias Jørgensen","email":"ej@acto.dk"}],"description":"Downloads and caches a Google Drive folder that you can then query with gatsby-source-filesystem.","repository":{"type":"git","url":"git+https://github.com/fabe/gatsby-plugin-drive.git"},"bugs":{"url":"https://github.com/fabe/gatsby-plugin-drive/issues"},"homepage":"https://github.com/fabe/gatsby-plugin-drive#readme","scripts":{"build":"babel src --out-dir . --ignore __tests__","prepublish":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore __tests__"},"keywords":["gatsby","gatsby-plugin"],"devDependencies":{"babel-cli":"^6.26.0","cross-env":"^5.2.0"},"dependencies":{"babel-runtime":"^6.26.0","gtoken":"^2.3.0","mkdirp":"^0.5.1","request":"^2.87.0"},"_id":"@acto/gatsby-plugin-drive@0.2.1","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-MBk9t4NwpJYI0kYBNRv1mf/gSWy3m3DLxk6jFWl0q8MfqB13kmPuNbmRPWPcUbfIF0XEbXk8lJ8Z7MFCE7rfhQ==","shasum":"5241025fa2b68c6e45a59c899d900debd8d8b0d6","tarball":"https://registry.npmjs.org/@acto/gatsby-plugin-drive/-/gatsby-plugin-drive-0.2.1.tgz","fileCount":7,"unpackedSize":9780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgMFVCRA9TVsSAnZWagAAZkIP/3TcDpXKiOuJ4jT8sTeE\n+ElR9UBVtPezOFZw648eiLsuMoo+eSYljNw9TwsDC64yjChRurhyCDHi0o6Y\nc4cDyRMpwPJtJr5x7EVCrDPmEiEwHqvAAP/6tIOeZ1wI7wkalFgs/I1nDfrT\n89tIuHnaM7YCem2H8T5/Ccd/avJBe4ijDZjRR6V6lv2rrKmOf9xGxu1QN1i9\nX7zy3CpWrFntPhO4eAx/7SEE7G3YoqAuZfPiB157FBTWwxMd5phAcVk9hqwE\nWhcD26ag0puWAJrrENoIb8JOxGyG+Vqg0L/s7pQjx7OOJrTXepB3sNEfdtHo\nGy05mb7tyX5xRrqZ5rr8Bz00hpSLYBhW4xGhMBkRo6jf/6wM93y1ogLzPTXM\nkiBRdT9Z6ylBNYaIhqsAH9TZpPwsYbGOZu12ydTWduYaQoo/dXv3ZQECLHeH\nTQR0DgZxajNV5EsDDF84HqhWd2qMYSuLz9mos6qf1GudYMPwfu45zWeys0DF\nXcxXgLE44gwBEMzCDduuhhnU0coBAg1BPQ8kCAEsI/ioXrV/tLr0oTN2Rqvf\ny0ejQFf62RT0fRpWt6TSqas6NWqAlKxmjsmkataFpYayKgYq4aBP2ouPKWik\nQdgcxBBV6s5P3ZUphlZY2gckpylLfw3TgBjufhrs39NNZDJXFATCXfNcyecR\nXR7+\r\n=X+J5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3bfp9NR81UQlQ2MMBhEjRr781CYh6hX747L4TblnSHAiEAsBS6IxGanwRy4lHFMvHL/bKOSINla4P+Ia4G9lvGkxw="}]},"maintainers":[{"name":"easteryard","email":"cstergaard@hotmail.com"},{"name":"eliasjorgensen","email":"eliaszakarias@gmail.com"},{"name":"samimaj","email":"sami.majdoub@gmail.com"}],"_npmUser":{"name":"eliasjorgensen","email":"eliaszakarias@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-drive_0.2.1_1568719189053_0.6110411553724671"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2019-02-19T16:06:27.042Z","0.1.2":"2019-02-19T16:06:27.418Z","modified":"2023-02-27T09:06:26.143Z","0.2.0":"2019-03-22T12:01:11.088Z","0.2.1":"2019-09-17T11:19:49.152Z"},"maintainers":[{"email":"ohachach@gmail.com","name":"omarh"}],"description":"Downloads and caches a Google Drive folder that you can then query with gatsby-source-filesystem.","homepage":"https://github.com/fabe/gatsby-plugin-drive#readme","keywords":["gatsby","gatsby-plugin"],"repository":{"type":"git","url":"git+https://github.com/fabe/gatsby-plugin-drive.git"},"contributors":[{"name":"Fabian Schultz","email":"desk@fabianschultz.com"},{"name":"Elias Jørgensen","email":"ej@acto.dk"}],"bugs":{"url":"https://github.com/fabe/gatsby-plugin-drive/issues"},"license":"MIT","readme":"# gatsby-plugin-drive\n\nDownloads and caches a Google Drive folder that you can then query with `gatsby-source-filesystem`.\nOptionally exports Google Docs to a usable format.\n\n> This is still a work in progress.\n\n## Installation\n\n```bash\nyarn add @fs/gatsby-plugin-drive\n```\n\n## Usage\n\nIn order to use this plugin, you'll need to generate a Google Service Account and share your drive folder with its email. [Here's a guide](https://www.twilio.com/blog/2017/03/google-spreadsheets-and-javascriptnode-js.html).\n\n```js\n// In your gatsby-config.js\n\nplugins: [\n  {\n    resolve: '@fs/gatsby-plugin-drive',\n    options: {\n      folderId: 'GOOGLE_DRIVE_FOLDER_ID',\n      keyFile: path.resolve(__dirname, 'YOUR_SERVICE_ACCOUNT_KEYFILE.json'),\n      destination: path.join(__dirname, 'src/content'),\n      exportGDocs: true,\n      exportMimeType: 'text/html',\n      exportMiddleware: someFunction\n    }\n  }\n]\n```\nIf the `exportGDocs` option is enabled, all Google Docs in the folder will be exported with the MIME type set in the `exportMimeType` option. You can see a list of available Google Docs export MIME types [here](https://developers.google.com/drive/api/v3/manage-downloads).\nIf the `exportGDocs` option is disabled, all Google Docs in the folder will be ignored.\n\nThe `exportMiddleware` option is optional. If set, the plugin will run each Google Doc through the function, before it writes it to disk.\nA usecase for this, could be cleaning up, or manipulating, the HTML that the Google Drive API returns.  \nThe expected function signature is `Buffer -> Buffer`.\n\n\nYour drive folder will download all files everytime it builds, except when a file already exists or is cached. To download all files again, set up an npm clean script like:\n\n```json\n\"clean\": \"rimraf src/content\",\n```\n\n## Author\n\n* Fabian Schultz ([@fschultz\\_](https://twitter.com/fschultz_)) - [Stink Studios](https://stinkstudios.com)\n* Elias Jørgensen ([@\\_eliasjorgensen](https://twitter.com/_eliasjorgensen))","readmeFilename":"README.md"}