{"id":23051447,"url":"https://github.com/averissimo/write2sheet","last_synced_at":"2025-08-15T03:32:02.131Z","repository":{"id":39006589,"uuid":"123308253","full_name":"averissimo/write2sheet","owner":"averissimo","description":"Simple Node.js library to write to Google Sheets","archived":false,"fork":false,"pushed_at":"2024-12-15T05:13:44.000Z","size":1543,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-15T06:20:05.183Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/averissimo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-28T16:02:29.000Z","updated_at":"2024-11-29T21:04:37.000Z","dependencies_parsed_at":"2024-11-29T22:33:41.137Z","dependency_job_id":null,"html_url":"https://github.com/averissimo/write2sheet","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/averissimo%2Fwrite2sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averissimo%2Fwrite2sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averissimo%2Fwrite2sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averissimo%2Fwrite2sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/averissimo","download_url":"https://codeload.github.com/averissimo/write2sheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229788165,"owners_count":18124198,"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-12-15T23:45:55.595Z","updated_at":"2024-12-15T23:45:56.077Z","avatar_url":"https://github.com/averissimo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# write2sheet\n\n[![Build Status](https://travis-ci.org/averissimo/write2sheet.svg?branch=master)](https://travis-ci.org/averissimo/write2sheet)\n\n\n\u003e Simple Node.js library to write to Google Sheets\n\nSuper simple library that writes data into a Google Sheet\n\n## Requirements\n\n- Node.js *(v8 or up)*\n- Get a OAuth2.0 authorization by following [this guide](https://developers.google.com/sheets/api/guides/authorizing) (see `Authorizing requests with OAuth 2.0`)\n  - Write the `client_secret.json` to folder\n- Run it *(the first time it runs it will ask for permissions)*\n\n## Example\n\nSimple example to write current date to a cell\n\n```\nconst moment = require('moment');\nconst GoogleSheetWrite = require('.');\n\nconst sheet = new GoogleSheetWrite('\u003csome spreadsheet id\u003e');\n\n// Update date\nconst mydate = moment().format('YYYY/MM/DD HH:mm:ss');\nconst range = 'Sheet!B4';\n\nsheet.write([[mydate]], range);\n```\n\nExample to write current coin values to Range in sheet `Currencies` (using [averissimo/crypto-market-scrapper](https://github.com/averisimo/crypto-market-scrapper))\n\n\n```\nconst scrapper = require('crypto-market-scrapper');\nconst GoogleSheetWrite = require('.');\n\nconst sheet = new GoogleSheetWrite('\u003csome spreadsheet id\u003e');\n\nconst currencies = scrapper.getCurrencies([{\n  \"description\": \"Garlicoin\",\n  \"code\": \"GRLC\",\n  \"url\": \"https://coinmarketcap.com/currencies/garlicoin/\"\n}, {\n  \"description\": \"Bitcoin   \",\n  \"code\": \"BTC\",\n  \"url\": \"https://coinmarketcap.com/currencies/bitcoin/\"\n}]);\n\ncurrencies.then(response =\u003e {\n\tconst values = response.sort((a, b) =\u003e {\n\t\treturn a.code.localeCompare(b.code);\n\t}).map(el =\u003e {\n\t\treturn [el.description, el.code, el.usd];\n\t});\n\t// Write to sheet\n\tsheet.write(values, 'Currencies!B9:D');\n});\n```\n\n## Donating\n\n*Consider donating if this library has helped*\n\n- ETH: 0xd6692892ab173fea765b09cb7adc105d6a5337d0\n- LTC: LKmUFmAjUkmVLieJydrtiBeAAuUZi9A3CB\n- Nano: xrb_1m9eh9ojnh4fp35p49pim1ohmwjzt74ctiucdnyydwf3whkm8ur66jroc6da\n- GRLC: GW4EB6nLbx8B4TGD6nZLUXSWN92am2S5PN\n\n## License\n\nGNU General public license (v3), see `LICENSE` for more details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverissimo%2Fwrite2sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faverissimo%2Fwrite2sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverissimo%2Fwrite2sheet/lists"}