1.0.1 • Published 7 years ago

wifipiano2 v1.0.1

Weekly downloads
6
License
GPL-3.0
Repository
github
Last release
7 years ago

wifipiano2

An osu!mania pp calculator library - Rewritten in JavaScript. The original Wifipiano2 is Ripple's implementation of osu-performance. In short I needed the calculator for a project, so I've rewritten it in JavaScript, as a module anyone is free to use.

Usage

  • npm install wifipiano2 --save
const wifipiano2 = require('wifipiano2');

let scoreData = {
    starRating: 11.9, 
    overallDifficulty: 1, 
    objects: 1878,
    mods: 'none',
    score: 441413, 
    accuracy: 97.20
};
console.log(wifipiano2.calculate(scoreData));
  • For mods you can pass in either 'nf', 'nofail', 'ht', 'half time', 'ez', 'easy', 'none'

License

GNU General Public License v3 (GPL-3)