wifipiano2

1.0.1 • Public • Published

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)

Dependents (0)

Package Sidebar

Install

npm i wifipiano2

Weekly Downloads

7

Version

1.0.1

License

GPL-3.0

Last publish

Collaborators

  • swans