wifipiano2
v1.0.1
Published
osu! mania pp calculator
Downloads
9
Readme
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'