ects-serhii-module
v1.0.2
Published
You need to implement an npm package that converts scores from the 100-point grading system to the ECTS format.
Downloads
2
Readme
ects-converter-module
This is a npm module for converting scores from the 100-point grading system to the ECTS format. It accepts only numbers in range 0 - 100.
Installing
Using npm:
$ npm install ects-serhii-module
Once the package is installed, you can import the library using require
approach:
const ECTS = require('ects-converter-module');
Example
const ECTS = require('ects-converter-module');
const score = 80;
const ectsInstance = new ECTS(score);
const ectsGrade = ectsInstance.ectsFromScore();
console.log(ectsGrade);
// expected output: "C"