borda-count

1.3.0 • Public • Published

borda-count

Counting ranked votes using the Borda tournament method

Install

npm i borda-count
## or using Yarn
yarn add borda-count

Use

Count votes in the given "votes.csv" and skip any columns

crawl-links,npm-alias,cy-log-tips,connect-to-db,doom-fixtures,email
2,5,1,3,4,b
3,5,4,2,1,t
1,3,2,"","",n
2,3,5,1,4,h
5,4,1,2,3,f
npx borda votes.csv email

You can pass multiple column names to skip

npx borda votes.csv email,crawl-links

Output

Prints the choices ordered by points assigned to each place

npx borda votes.csv

Choice         Votes
-------------  -----
connect-to-db  20
cy-log-tips    19
crawl-links    18
doom-fixtures  17
npm-alias      13

Readme

Keywords

Package Sidebar

Install

npm i borda-count

Weekly Downloads

2

Version

1.3.0

License

MIT

Unpacked Size

4.17 kB

Total Files

4

Last publish

Collaborators

  • bahmutov