highest-averages
Version:
Zero-dependency and extensible set of highest averages methods for allocating seats in a parliament. ### Install ```shell npm i highest-averages ``` ### Pure Example - Define the candidates with their vote ```typescript const a = new Candidate('A', 200) c
48 lines (47 loc) • 1.12 kB
JSON
{
"name": "highest-averages",
"version": "1.0.3",
"description": "",
"keywords": [
"highest averages",
"d'hondt",
"sainte-lague",
"imperiali",
"huntington-hill",
"danish",
"election",
"vote"
],
"homepage": "https://github.com/omerfarukdemir/highest-averages",
"bugs": {
"url": "https://github.com/omerfarukdemir/highest-averages/issues",
"email": "omerfarukde@gmail.com"
},
"license": "Unlicense",
"author": "Ömer Faruk Demir",
"files": [
"dist"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/omerfarukdemir/highest-averages.git"
},
"scripts": {
"build": "tsc",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^29.2.2",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"eslint": "^8.27.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.5.1",
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"typescript": "^4.8.4"
}
}