https://github.com/po8klasie/points-calculator
Recruitment points calculator for polish highschools
https://github.com/po8klasie/points-calculator
calculator highschool points-calculator
Last synced: 5 months ago
JSON representation
Recruitment points calculator for polish highschools
- Host: GitHub
- URL: https://github.com/po8klasie/points-calculator
- Owner: po8klasie
- License: mit
- Created: 2019-02-24T18:23:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-08T16:01:23.000Z (over 5 years ago)
- Last Synced: 2025-08-09T00:03:39.054Z (10 months ago)
- Topics: calculator, highschool, points-calculator
- Language: TypeScript
- Homepage: https://npm.im/@warsawlo/points-calculator
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Points Calcutator
Package for calculating recruitment points.
## Installation
```bash
yarn add @warsawlo/points-calculator
```
or
```bash
npm i -S @warsawlo/points-calculator
```
We've migrated our docs to [https://oss.warsawlo.pl](https://oss.warsawlo.pl/docs/packages/overview).
### Warning!
There are some key differences between v1 and v2 of the package.
If you don't migrate to the latest version, your code won't work properly.
**Version 1.0.2 is deprecated. Use that version only if you want to support `secondarySchool` mode.**
## Basic usage
```typescript
import { PointsCalculator, configs } from '@warsawlo/points-calculator';
const { config2018_2019 } = configs;
const Calc = new PointsCalculator(config2018_2019);
Calc.setGrades({
polish: 6,
math: 4
});
Calc.setExamResult({
polish: .95
});
console.log(Calc.points);
Calc.watch(points => {});
setTimeout(() => Calc.setMerit(true), 1000);
```
## Docs
* [Configs](https://github.com/WarsawLO/points-calculator/tree/master/docs/configs.md)
* Utils
* [Validators](https://github.com/WarsawLO/points-calculator/tree/master/docs/validators.md)
* [Initial data](https://github.com/WarsawLO/points-calculator/tree/master/docs/initial-data.md)
* API Reference
* [PointsCalculator](https://github.com/WarsawLO/points-calculator/tree/master/docs/api-reference/PointsCalculator.md)
* [Interfaces & types](https://github.com/WarsawLO/points-calculator/tree/master/docs/api-reference/interfaces.md)
* [Changelog](https://github.com/WarsawLO/points-calculator/tree/master/CHANGELOG.md)