@r0neko/osuparser

1.0.3 • Public • Published

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}`);

Readme

Keywords

Package Sidebar

Install

npm i @r0neko/osuparser

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

11.7 kB

Total Files

17

Last publish

Collaborators

  • r0neko