2.1.2 • Published 4 years ago

@warsawlo/points-calculator v2.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Points Calcutator

Package for calculating recruitment points.

Installation

yarn add @warsawlo/points-calculator

or

npm i -S @warsawlo/points-calculator

We've migrated our docs to https://oss.warsawlo.pl.

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

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

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago