{"id":17983466,"url":"https://github.com/techjacker/google-docs-cms","last_synced_at":"2025-03-25T19:32:31.006Z","repository":{"id":18143055,"uuid":"21234770","full_name":"techjacker/google-docs-cms","owner":"techjacker","description":"Use google sheets as your cms","archived":false,"fork":false,"pushed_at":"2014-07-10T21:57:32.000Z","size":178,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-20T17:41:50.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techjacker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-26T09:09:37.000Z","updated_at":"2024-11-06T07:09:57.000Z","dependencies_parsed_at":"2022-07-25T06:32:05.329Z","dependency_job_id":null,"html_url":"https://github.com/techjacker/google-docs-cms","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fgoogle-docs-cms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fgoogle-docs-cms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fgoogle-docs-cms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fgoogle-docs-cms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techjacker","download_url":"https://codeload.github.com/techjacker/google-docs-cms/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245530446,"owners_count":20630563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T18:17:19.788Z","updated_at":"2025-03-25T19:32:30.630Z","avatar_url":"https://github.com/techjacker.png","language":"JavaScript","readme":"# google-docs-cms\n\nGoogle docs is your CMS!\n\n- Creates a JSON object of your google spreadsheet.\n- Combines all tabs together with the main sheet into a single json object with the tab names as keys.\n- Writes data to disc (optional).\n\n\n## Install\n\n```Shell\nnpm install -g google-docs-cms\n```\n\n## Usage\n\n\n### CLI\n\n```Shell\ngoogle-docs-cms 'spreadsheet-id' 'path-to-write-data.json'\n```\n\n### JavaScript\n\n```JavaScript\nvar googleDocsCms = require('google-docs-cms');\n\ngoogleDocsCms({\n  id: 'your-google-spreadsheet-id',\n  outPath: path.join('where', 'to', 'write', 'data')\n}, function(err, res) {\n  console.log(res); // {tabNameOne: [{...}], tabNameTwo: [{...}]}\n  console.log(require(path.join('where', 'to', 'write', 'data'))); // {tabNameOne: [{...}], tabNameTwo: [{...}]}\n});\n\n// also has a promise API\ngoogleDocsCms({...}).then(function(res) {}, function(err), {});\n```\n\n## API\n\n### Options {object}\n\n### Options.id {string} (Required)\nGoogle spreadsheet id\n\n### Options.outPath {string} (Optional)\nPath to the file that you want the data to be written to.\n\n\n\n--------------------------------------------------------------------\n\n## Tests\n\n```Shell\nnpm install \u0026\u0026 npm test\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Fgoogle-docs-cms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechjacker%2Fgoogle-docs-cms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Fgoogle-docs-cms/lists"}