{"id":20206883,"url":"https://github.com/tomgp/gs-download","last_synced_at":"2026-05-12T00:35:28.344Z","repository":{"id":43600081,"uuid":"511451181","full_name":"tomgp/gs-download","owner":"tomgp","description":"command line tool to download a google sheet as a bunch of CSVs","archived":false,"fork":false,"pushed_at":"2022-08-16T13:05:36.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T09:46:04.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomgp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-07T08:47:44.000Z","updated_at":"2022-07-07T08:47:50.000Z","dependencies_parsed_at":"2022-08-24T14:36:52.714Z","dependency_job_id":null,"html_url":"https://github.com/tomgp/gs-download","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fgs-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fgs-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fgs-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgp%2Fgs-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomgp","download_url":"https://codeload.github.com/tomgp/gs-download/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644542,"owners_count":19996177,"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-11-14T05:26:33.956Z","updated_at":"2025-11-30T12:05:18.278Z","avatar_url":"https://github.com/tomgp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gsdownload\n\nDownload Google sheets as CSVs using a service account.\n\n## Process overview\n\n1. Create a Google service account \n2. Share your spreadsheet with that account\n3. Provide credentials from that account to `gsdownload` along with a sheet ID and it will download each worksheet as a CSV file to a location you specify\n\n\u003eBe careful not to leak your private key. Provide it as an environment variable/ secret and don't commit it to your repository\n\nThis mainly developed for use in a CI context so...\n\n## CI usage\n\nTo use _gsdownload_ in a CI context (like Github actions for example) you need to \n\n1. set `GOOGLE_CLIENT_EMAIL` and `GOOGLE_PRIVATE_KEY` as environment variables / secrets for github actions you can do this in the repo Settings-\u003eSecrets-\u003eActions i.e. `https://github.com/\u003cusername/orgname\u003e/\u003creponame\u003e/settings/secrets/actions`\n2. make sure your task runner can install \u0026 run node scripts and in your CI workflow globally install _gsdownload_ `npm i -g @tomgp/gsdownload`\n3. in your CI workflow add the command `getsheet \u003csheetID\u003e \u003coutput_directory\u003e` and the worksheet CSVs should hopefully appear in `output_directory`\n\n## otherwise, to use it in anothe Node script...\n\n```js\nconst  { getSheet } = require('./index.js');\ngetSheet( \u003cSpreadsheet_ID\u003e, \u003cGoogle_service_account_email_address\u003e, \u003cService_account_private_key\u003e, \u003cOutput_directory\u003e);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgp%2Fgs-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomgp%2Fgs-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgp%2Fgs-download/lists"}