osumodcalculator
osu! mod calculator

Docs
Installation
npm i osumodcalculator
Usage
import { types, mod } from "osumodcalculator";
const mods: types.Mod[] = mod.fromString("HDDTHR"); // => ['HD', 'DT', 'HR']
notes:
- EZ & HR calculations should come before DT/HT calculations
- OD is listed as accuracy in the osu! api
- HP is listed as drain in the osu! api
credits:
osu! accuracy wiki
osu! grades wiki
Difficulty Settings Table
My website