@r0neko/osuparser
v1.0.3
Published
Syncronous osu! beatmap file parser written in JavaScript.
Downloads
2
Readme
osuParser
Syncronous osu! beatmap file parser written in JavaScript.
Installation
osuParser requires node.js v4+ to run.
Install this package through npm(NodeJS Package Manager).
$ npm install @r0neko/osuparser
Usage
Example code:
const osuParser = require("@r0neko/osuparser");
console.log("Opening the beatmap!");
let map = osuParser.ParseFile("./TestMap.osu");
// or osuParser.Parse(string) if you want to parse the map from raw string
console.log(`Map opened; ${map.title} - ${map.artist}(${map.creator}) [${map.version}] - Designed for GameMode ${map.mode}`);
console.log(`Audio file: ${map.audio}`);
console.log(`HP: ${map.hp}; CS: ${map.cs}; OD: ${map.od}; CS: ${map.cs}`);