{"_id":"@bwagener/gridsome-source-google-docs","_rev":"2-6faf7588306b43342c869248a6f4dae7","name":"@bwagener/gridsome-source-google-docs","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"version":"0.1.0","name":"@bwagener/gridsome-source-google-docs","description":"Google docs source for Gridsome","homepage":"https://github.com/BWagener/gridsome-source-google-docs/tree/master#readme","repository":{"type":"git","url":"git+https://github.com/BWagener/gridsome-source-google-docs.git"},"main":"index.js","keywords":["gridsome","gridsome-plugin","gridsome-source","google docs"],"dependencies":{"fs":"^0.0.1-security","googleapis":"^40.0.0","https":"^1.0.0","image-type":"^4.1.0","json2md":"^1.6.3","lodash":"^4.17.15","path":"^0.12.7","queue":"^6.0.1","read-chunk":"^3.2.0","readline-sync":"^1.4.9","yamljs":"^0.3.0"},"peerDependencies":{"gridsome":"0.x"},"publishConfig":{"access":"public"},"engines":{"node":">=8"},"gitHead":"57c7cdca237a5348350b1ad6169cace5a9792fdf","bugs":{"url":"https://github.com/BWagener/gridsome-source-google-docs/issues"},"_id":"@bwagener/gridsome-source-google-docs@0.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-QKeVC2i/F3DlqjOG4jKepQ332bY4ambXfW15QbbGKGTo5spyG30dnp9YNMQOwDYYIhlcDKiGZSOcsaDq9vGR/A==","shasum":"b5cfef544e1e010c150a2ae00f31aef4ae712f2a","tarball":"https://registry.npmjs.org/@bwagener/gridsome-source-google-docs/-/gridsome-source-google-docs-0.1.0.tgz","fileCount":10,"unpackedSize":24292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdywksCRA9TVsSAnZWagAAgowP/0NvfBgdClf8Z4q7lTmi\nuJKYt5UL0B9yCc+HohO7zpzUBOFyBs/eNeHZQCALXOZZXLkOK9+F1K7Dnz3m\nAB2sXaIZFrn1kKSOYG2hrEZqF3qQ7mge2OoZRE4CbfDh5nVDrDuEtoUQdsVA\nhro+HAHVBktMJZ9YW5cMn3IpB/g07gk9jRcl3/WwgLfjAgoaQoXJeSRpvW8H\nUQHNkg7U8xbmFfjybqn567KNT2spx9A0MOFyeL+UCqH5HGrfgANeHVyMG5cs\nq/dbNaoKzoGGkLXnJEAJGwfNuv8bHtupnBEo+FJcmz5oz6QVvZkW5Yc9vjiR\naViETOSE6ZiVPUANiJKOP7rBmJb9VRxnJ8q5ghXiAZl/6x//vXeVmJnVlAHV\nf3JU1Wcn7aM9yRaO+x8MrwU2Fxu9chtZvw9lvEOY7xlZ/B0i4EiaEcTcwhTZ\nqatW3i4i3hXFdKSSWvCCYXK2WdUKD9yDHqqW0wwaBQt0hbSNiUqrAfD7TU8J\nRjjSYU3DIJhIxcIHjPYX2YalX2cJftrhzDdKrHEyU4Sywyk9RU3YxTzqYU+x\nPOtZSGzQ6cu2t/D7/ncRlwJuLEUIaNFbEw+qTN0U6BcA6sT5RUGLHBuYhZRL\n8UR/DG3kXy+/4WVt+S9vI6P093bf4Yglr8yYsYNPYfFgEihgxi/G457+ICoK\n/9pb\r\n=nIal\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyEwFMCGIPN+0BeVRAcmlMB7OSJLOEvIp9m0+Zd7q5ZAiEAlZu5zrcmJ/sKFF8FP1QfAXBM0zFKpJB9KRwELS8kLoI="}]},"maintainers":[{"name":"bwagener","email":"wagenerbene@gmail.com"}],"_npmUser":{"name":"bwagener","email":"wagenerbene@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gridsome-source-google-docs_0.1.0_1573587244007_0.9946687425898433"},"_hasShrinkwrap":false},"0.1.1":{"version":"0.1.1","name":"@bwagener/gridsome-source-google-docs","description":"Google docs source for Gridsome","homepage":"https://github.com/BWagener/gridsome-source-google-docs/tree/master#readme","repository":{"type":"git","url":"git+https://github.com/BWagener/gridsome-source-google-docs.git"},"main":"index.js","keywords":["gridsome","gridsome-plugin","gridsome-source","google docs"],"dependencies":{"fs":"^0.0.1-security","googleapis":"^66.0.0","https":"^1.0.0","image-type":"^4.1.0","json2md":"^1.9.1","lodash":"^4.17.20","path":"^0.12.7","queue":"^6.0.1","read-chunk":"^3.2.0","readline-sync":"^1.4.9","yamljs":"^0.3.0"},"peerDependencies":{"gridsome":"0.x"},"publishConfig":{"access":"public"},"engines":{"node":">=8"},"gitHead":"d8307b0488224ea8f9be6a6156c0f3050636b992","bugs":{"url":"https://github.com/BWagener/gridsome-source-google-docs/issues"},"_id":"@bwagener/gridsome-source-google-docs@0.1.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-qX7n4DuWDbyNIOSaQgvugb8jZi2rCMjJ/AgsFowfu+zG6VJJ6Sh2/xK3A6zF10Wcr4D2eOBpw1AKi5qjozF0Hw==","shasum":"ccf10e05c83ee962815d5ec8ec1e5f44c0913c3f","tarball":"https://registry.npmjs.org/@bwagener/gridsome-source-google-docs/-/gridsome-source-google-docs-0.1.1.tgz","fileCount":10,"unpackedSize":24292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz+eYCRA9TVsSAnZWagAAo1MP/Rz2+OyzO2yZx+QUaAfb\nyLGilLjkkf8yUk4bFdbAOa5rsykb+GPhe+Zg51KJ9PRO8GhSPjZyuJnJy5wu\nfiRiWtVyKqGUpQFXlq5N1EWeuaI5+Lp9Wr0l1dMeFXVE++rw+7RBddg1Q6w0\ncxwcT7AfOJQVO+GykVdnbZNOm2XLqKgPfLH0+71dEamYJ9H3aIMcHJihs5xr\nETQVvJU0VB9aCa6Zp70yCPr+OOHfQlQ4ZCF/+lbQwriCxbgUQKp6tGJSB8Ho\n/pwimkLnwSo4HQHKVQRj9I0SouLymB51UE/eTD4yf9fToidY9262g97xq6Vd\naFVu83/VL6TrWHMg+7SfzBqht+OAfSJTbSAkiuhBCL8zgdbzw+A13mfK24y8\n4NrBQRilqLX19QbQFoO6W49L0GhwjXVCr9sJEaniBEOXBq7U2+Ow3zwjaHMx\nZIX45+99BQE+sWs+9dmG0QYRWrCtsc7QjhwahhSY4wML5JzbQFh6DRnQ4InD\n+6k67q1y9QiHcfms3IT/N2us3HiHTt0EBimQiVgAdbU6ZzoZlqfBlU8we86k\nOUcjgmDUcFn1CyPFEm6SGT4ggs++v3cdgXeW3AwleOVuNnF48sRx+s85qGrY\nIYo4nyYFUmyS4luGT39hrZm8Mw2EbsFvCny1jxMoke+kIqdFkNwO4TRfqKbA\nw7pD\r\n=YJ97\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdhELISYtJ8VkO2m508awGpDlCDrYzxCzvF4K5xMp1ZAiEAg4VgZ/qqiQKcRng4OCtpZOFn/rMqYyd5yFfpsYpU0PE="}]},"_npmUser":{"name":"bwagener","email":"wagenerbene@gmail.com"},"directories":{},"maintainers":[{"name":"bwagener","email":"wagenerbene@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gridsome-source-google-docs_0.1.1_1607460760236_0.4862710466117077"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-12T19:34:03.767Z","0.1.0":"2019-11-12T19:34:04.138Z","modified":"2022-04-04T21:17:18.546Z","0.1.1":"2020-12-08T20:52:40.411Z"},"maintainers":[{"name":"bwagener","email":"wagenerbene@gmail.com"}],"description":"Google docs source for Gridsome","homepage":"https://github.com/BWagener/gridsome-source-google-docs/tree/master#readme","keywords":["gridsome","gridsome-plugin","gridsome-source","google docs"],"repository":{"type":"git","url":"git+https://github.com/BWagener/gridsome-source-google-docs.git"},"bugs":{"url":"https://github.com/BWagener/gridsome-source-google-docs/issues"},"readme":"# Gridsome Source for Google Docs\r\n\r\nSource plugin for fetching data into [Gridsome](https://gridsome.org/) from Google Docs.\r\n\r\n## Install\r\n\r\n`npm install --save gridsome-source-google-docs`\r\n\r\n## Turn on the Google Docs API and set configuration\r\n\r\n-   Follow the [Step 1: Turn ON the Google Docs API](https://developers.google.com/docs/api/quickstart/js)\r\n-   Turn ON the [Google Drive API](https://developers.google.com/drive/api/v3/quickstart/nodejs)\r\n-   Get a `Client ID` and a `Client Secret` from the Google console. If you downloaded `credential.json` file, you can extract them from it\r\n-   Get an `API key` from the Google console\r\n-   Fill the `gridsome-source-google-docs` gridsome options object.\r\n\r\n> More info can be found [on the official Google Docs quickstart guide](https://developers.google.com/docs/api/quickstart/js).\r\n\r\n## Generate a token file\r\n\r\nRun `gridsome develop` and follow the instructions to generate a token file.\r\n\r\n> `tokenPath` can be customized in the options object to change the location and name.\r\n\r\n\r\n## How to use\r\n\r\n```javascript\r\n// In your gridsome.config.js\r\nplugins: [\r\n  {\r\n    use: 'gridsome-source-google-docs',\r\n    options: {\r\n      foldersIds: ['a8o3d384gdjbvxlfdi8rsz3'],\r\n      clientId: '534534534553-sdify73yriw3sy3ri7y33fis73yfis.apps.googleusercontent.com',\r\n      clientSecret: 'fsidufhsie734fhsi7si3',\r\n      apiKey: 'asdas7ir3irshek8hsduska3udhsdu',\r\n    },\r\n  }\r\n]\r\n```\r\n\r\n## How to query and filter\r\n\r\nYou can query the nodes created from Google Drive with the following:\r\n\r\n```javascript\r\nquery IndexQuery {\r\n  posts: allGoogleDocs {\r\n    edges {\r\n      node {\r\n        date\r\n        title\r\n        body\r\n        slug\r\n        id\r\n        content\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n","readmeFilename":"README.md"}