Single Transferable Vote (STV) NPM library
TypeScript implementation of STV algorithm without any runtime dependencies.
Add the library into your project using either:
npm add stv
yarn add stv
Import it into your project:
To evaluate election using STV, invoke the algorithm by calling the
Which STV counting method is implemented?
Currently, the Scottish STV rules are implemented. There may be more variants in the future.
stv library is licensed under MIT license.