{"id":26206671,"url":"https://github.com/swz-gh/yare-sync","last_synced_at":"2025-03-12T05:01:56.641Z","repository":{"id":57403233,"uuid":"376963032","full_name":"swz-git/yare-sync","owner":"swz-git","description":"Update your yare code from node.js","archived":false,"fork":false,"pushed_at":"2022-03-16T18:41:22.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T06:00:04.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/swz-git.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":"2021-06-14T21:41:28.000Z","updated_at":"2022-03-16T18:41:25.000Z","dependencies_parsed_at":"2022-09-15T14:40:16.489Z","dependency_job_id":null,"html_url":"https://github.com/swz-git/yare-sync","commit_stats":null,"previous_names":["swz-gh/yare-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swz-git%2Fyare-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swz-git%2Fyare-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swz-git%2Fyare-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swz-git%2Fyare-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swz-git","download_url":"https://codeload.github.com/swz-git/yare-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158972,"owners_count":20245672,"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":"2025-03-12T05:01:20.235Z","updated_at":"2025-03-12T05:01:56.630Z","avatar_url":"https://github.com/swz-git.png","language":"TypeScript","funding_links":[],"categories":["Developent/debugging tools"],"sub_categories":["WebAssembly"],"readme":"# yare-sync\n\nUpdate your yare code easily from node.js.\n\n## Setup\n\n- Install node.js\n\n## Example\n\n```js\nlet server = require(\"yare-sync\");\n\nlet username = \"your-username\";\nlet password = \"VerySecurePassword\"; // remember to not store your password in your code\n\nasync function main() {\n  console.log(\"Logging in as\", username);\n  let acc = await server.login(username, password);\n\n  if (!acc) return console.log(\"Login failed\");\n\n  console.log(\"Session id:\", acc.session_id);\n\n  let games = await server.getGames(username);\n\n  console.log(\"Games:\", games);\n\n  let successful = await server.sendCode(\n    \"console.log('Hello, World!')\",\n    games,\n    acc\n  );\n\n  if (successful) {\n    console.log(\"Uploaded code!\");\n  }\n}\n\nmain();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswz-gh%2Fyare-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswz-gh%2Fyare-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswz-gh%2Fyare-sync/lists"}