{"id":18486293,"url":"https://github.com/maxgfr/condorcet-winner","last_synced_at":"2025-04-08T19:33:08.017Z","repository":{"id":64920078,"uuid":"579096706","full_name":"maxgfr/condorcet-winner","owner":"maxgfr","description":"A simple condorcet vote algorithm implementation in typescript","archived":false,"fork":false,"pushed_at":"2025-04-01T15:29:10.000Z","size":2434,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T16:46:06.119Z","etag":null,"topics":["condorcet","condorcet-vote","condorcet-voting","condorcet-voting-algorithms","condorcet-winner","node","typescript","vote"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/condorcet-winner","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/maxgfr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2022-12-16T16:45:32.000Z","updated_at":"2025-03-27T09:34:09.000Z","dependencies_parsed_at":"2023-11-21T05:22:46.387Z","dependency_job_id":"79b0324c-212d-4e09-9ec4-16d15ca0c260","html_url":"https://github.com/maxgfr/condorcet-winner","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":0.08333333333333337,"last_synced_commit":"3be691ddc90e5a4739a819638b000fef3df4ab8b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fcondorcet-winner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fcondorcet-winner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fcondorcet-winner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxgfr%2Fcondorcet-winner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxgfr","download_url":"https://codeload.github.com/maxgfr/condorcet-winner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912789,"owners_count":21017045,"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":["condorcet","condorcet-vote","condorcet-voting","condorcet-voting-algorithms","condorcet-winner","node","typescript","vote"],"created_at":"2024-11-06T12:48:54.857Z","updated_at":"2025-04-08T19:33:07.712Z","avatar_url":"https://github.com/maxgfr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# condorcet-winner\n\nThis library is a TypeScript implementation of the [Condorcet method](https://en.wikipedia.org/wiki/Condorcet_method) for determining the winner of a [Condorcet paradox](https://en.wikipedia.org/wiki/Condorcet_paradox) election.\n\n## Installation\n\n```bash\nyarn add condorcet-winner\n```\n\n## Usage\n\n```typescript\nimport { condorcetWinner } from 'condorcet-winner';\n\nconst winner = condorcetWinner(\n  ['A', 'B', 'C'],\n  [\n    ['A', 'B', 'C'],\n    ['B', 'A', 'C'],\n    ['C', 'A', 'B'],\n  ],\n);\n\nconsole.log(winner); // 'A'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgfr%2Fcondorcet-winner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxgfr%2Fcondorcet-winner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxgfr%2Fcondorcet-winner/lists"}